if i want user to to input n number of values in the input window in array form how should i do it

 Risposta accettata

Ameer Hamza
Ameer Hamza il 9 Ott 2020
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 Commenti

Tejas Mahajan
Tejas Mahajan il 9 Ott 2020
I want to do this in MAtlab App Designer

Accedi per commentare.

Più risposte (1)

madhan ravi
madhan ravi il 9 Ott 2020
Use input() , enter the values in the form [1,5,4] an example.
doc input

Categorie

Scopri di più su Develop Apps Using App Designer in Centro assistenza e File Exchange

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by