how can i validate in my code if a user inputs non numeric values? how can i limit just for 4 values?
1 回表示 (過去 30 日間)
古いコメントを表示
steven Garcia
2014 年 11 月 25 日
回答済み: Mohammad Abouali
2014 年 11 月 25 日
this code request four values separated by comma
for vgauss=1:x
prompt={'Ingrese los valores del gaussiano separados por comas: '};
b = inputdlg(prompt,'Gaussiano', [1 50]);
w=b{1,1};
EnChar{1,vgauss}=w;
data{1,vgauss}=str2double(regexp(w,'\d*','match')');
handles.data=data; %estos son los gaussianos [...]
handles.CharGauss=EnChar;
end
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!