temp = get(handles.input1,'string');
inputs{1} = [];
if strcmp(temp ,'-') == 0
inputs{1} = str2double(temp);
end
temp = get(handles.input2,'string');
if strcmp(temp ,'-') == 0
inputs{2} = str2double(temp);
end
temp = get(handles.input3,'string');
if strcmp(temp ,'-') == 0
inputs{3} = str2double(temp);
end
temp = get(handles.input4,'string');
if strcmp(temp ,'-') == 0
inputs{4} = str2double(temp);
end
temp = get(handles.input5,'string');
if strcmp(temp ,'-') == 0
inputs{5} = str2double(temp);
end
temp = get(handles.input6,'string');
if strcmp(temp ,'-') == 0
inputs{6} = str2double(temp);
end
matlab 读取参数,不同策略不同参数个数
最新推荐文章于 2023-02-14 22:11:47 发布