Professional Documents
Culture Documents
matlab 使用积累
matlab 使用积累
inputdlg
answer = inputdlg(prompt)
prompt cell array
egprompt = {'Enter matrix size:','Enter colormap name:'};
answer cell array
eganswer = {'1','2'};
answer = inputdlg(prompt,dlg_title)
dlg_title
answer = inputdlg(prompt,dlg_title,num_lines)
num_lines
answer = inputdlg(prompt,dlg_title,num_lines,defAns)
defAns cell
egdefAns = {'20','hsv'};
answer = inputdlg(prompt,dlg_title,num_lines,defAns,options)
options
options on'
options
Resize Can be 'on' or 'off' (default). If 'on', the window is resizable
horizontally.
WindowStyleCan be either 'normal' or 'modal' (
).
Interpreter Can be either 'none' (default) or 'tex'. If the value is 'tex', the
prompt strings are rendered using LaTeX.
Matlab str2double
str2double
str2double str2num matlab
doc str2double help str2double
X = str2double('str')
str ASCII str
1,000 str
NaN
X = str2double(C)
C C
char, hex2num, num2str, str2num