matlab执行带参数的exe文件

时间:2021-09-07 13:06:57
【文件属性】:
文件名称:matlab执行带参数的exe文件
文件大小:98B
文件格式:M
更新时间:2021-09-07 13:06:57
MATLAB exe matlab执行带参数的exe文件,其中函数foo为 function [x,y]=foo(z); if ischar(z) z=str2num(z);%由于参数传递都是字符形式,这里必须将其转为数值型 else z=z; end x=2*z; % Omit the semicolon after calculation to display the value on the screen y=z^2; disp(y) % Use DISP command to display the value of a variable explicitly

网友评论