determining number of inputs

hello. usually in matlab, we ask the user to enter a value once using this code x=input('message'). but what if we wanted the user to determine how many times to enter a value?

 Respuesta aceptada

Thorsten
Thorsten el 20 de Dic. de 2014

0 votos

N = ('How many times?');
for i=1:N
a(i) = ('your input');
end

Más respuestas (0)

Categorías

Más información sobre MATLAB Coder en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 20 de Dic. de 2014

Comentada:

el 20 de Dic. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by