Take input in Matlab App Designer
15 ビュー (過去 30 日間)
古いコメントを表示
I want user to give input in commas i.e -> 2,-6,-3,10,6,-6,10 and then work on it.So please help me with this.Im using Matlab App Designer Online.
0 件のコメント
回答 (1 件)
Ameer Hamza
2020 年 10 月 10 日
You can use uieditfield(): https://www.mathworks.com/help/matlab/ref/uieditfield.html in the app designer. Use the text version of UIEditfield to get the input in a vector format.
6 件のコメント
Ameer Hamza
2020 年 10 月 12 日
str2num is able to handle this case too
A = '[1,-3,-5,7]';
B = str2num(A);
Result
>> B
B =
1 -3 -5 7
参考
カテゴリ
Help Center および File Exchange で Develop uifigure-Based Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!