I need to repeat a word using a loop
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Thishan Dharshana Karandana Gamalathge
il 17 Mar 2018
Commentato: Thishan Dharshana Karandana Gamalathge
il 17 Mar 2018
I want to say "Hello" seven times. How can I do it using MATLAB? I know how to do it using numbers but not using words.
Thanks.
0 Commenti
Risposta accettata
KALYAN ACHARJYA
il 17 Mar 2018
Modificato: KALYAN ACHARJYA
il 17 Mar 2018
for a=1:7
fprintf('\nHello'); %\n for new line
end
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Loops and Conditional Statements in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!