take input in array
31 次查看(过去 30 天)
显示 更早的评论
if i want user to to input n number of values in the input window in array form how should i do it
0 个评论
采纳的回答
Ameer Hamza
2020-10-9
vec = input('Enter an array: ')
run the above line and type
[1,2,3,4]
in the command window. You will get
>> vec
vec =
1 2 3 4
2 个评论
Ameer Hamza
2020-10-9
You can use the UI Editfield: https://www.mathworks.com/help/releases/R2020b/matlab/ref/uieditfield.html.
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!