I need to repeat a word using a loop
1 回表示 (過去 30 日間)
古いコメントを表示
Thishan Dharshana Karandana Gamalathge
2018 年 3 月 17 日
コメント済み: Thishan Dharshana Karandana Gamalathge
2018 年 3 月 17 日
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 件のコメント
採用された回答
KALYAN ACHARJYA
2018 年 3 月 17 日
編集済み: KALYAN ACHARJYA
2018 年 3 月 17 日
for a=1:7
fprintf('\nHello'); %\n for new line
end
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!