keymenu.m
来自「神经网络实用教程----第三章源码(很不错喔)」· M 代码 · 共 33 行
M
33 行
function k = menu(s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13,s14,s15,s16,... s17,s18,s19,s20,s21,s22,s23,s24,s25,s26,s27,s28,s29,s30,s31,s32);%MENU Generate a menu of choices for user input.% K = MENU('Choose a color','Red','Blue','Green') displays on% the screen:%% ----- Choose a color -----%% 1) Red% 2) Blue% 3) Green%% Select a menu number: %% The number entered by the user in response to the prompt is% returned. On machines that support it, the local menu system% is used. The maximum number of menu items is 32.% J.N. Little 4-21-87, revised 4-13-92 by LS.% Copyright (c) 1984-93 by The MathWorks, Inc. disp(' ') disp(['----- ',s0,' -----']) disp(' ') for i=1:(nargin-1) disp([' ',int2str(i),') ',eval(['s',int2str(i)])]) end disp(' ') k = input('Select a menu number: ');
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?