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

 Réponse acceptée

Ameer Hamza
Ameer Hamza le 9 Oct 2020

0 votes

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 commentaires

Tejas Mahajan
Tejas Mahajan le 9 Oct 2020
I want to do this in MAtlab App Designer

Connectez-vous pour commenter.

Plus de réponses (1)

madhan ravi
madhan ravi le 9 Oct 2020

0 votes

Use input() , enter the values in the form [1,5,4] an example.
doc input

1 commentaire

Tejas Mahajan
Tejas Mahajan le 9 Oct 2020
i want to do this in Matlab App Designer.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Develop Apps Using App Designer dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by