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

 Respuesta aceptada

Ameer Hamza
Ameer Hamza el 9 de Oct. de 2020

0 votos

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 comentarios

Tejas Mahajan
Tejas Mahajan el 9 de Oct. de 2020
I want to do this in MAtlab App Designer
Ameer Hamza
Ameer Hamza el 9 de Oct. de 2020

Iniciar sesión para comentar.

Más respuestas (1)

madhan ravi
madhan ravi el 9 de Oct. de 2020

0 votos

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

1 comentario

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

Iniciar sesión para comentar.

Categorías

Más información sobre Develop Apps Using App Designer en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 9 de Oct. de 2020

Comentada:

el 9 de Oct. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by