Name Storage with Repeat loops
Mostra commenti meno recenti
f=input('Enter First Name:')
l=input('Enter Last Name:')
for [f,l]
repeat
strvcat(f,l)
until f=Jed
end
I need help with this code, what I'm tying to do is store names in a loop until the name Jed is typed in. I thought this code would do the trick, but I am unsuccessful.
2 Commenti
the cyclist
il 29 Apr 2015
Modificato: the cyclist
il 29 Apr 2015
Are you using MuPAD? There is no "repeat ... until" structure within MATLAB.
TS
il 29 Apr 2015
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!