determining number of inputs

2 visualizzazioni (ultimi 30 giorni)
maryam 94
maryam 94 il 20 Dic 2014
Commentato: maryam 94 il 20 Dic 2014
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?

Risposta accettata

Thorsten
Thorsten il 20 Dic 2014
N = ('How many times?');
for i=1:N
a(i) = ('your input');
end

Più risposte (0)

Categorie

Scopri di più su Get Started with MATLAB in Help Center 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