Help! i'm new
2 次查看(过去 30 天)
显示 更早的评论
hi guy, i'm a newbie and havent know a lot about Matlab yet. i'm having trouble with a question which i have to display the phrase here we go loop the loop 6 times using for-loop and diplay command, can you guys help me out, please
0 个评论
回答(1 个)
KSSV
2019-3-18
Read about fprintf
for i = 1:6
fprintf('Here we go the loop %d\n',i)
end
2 个评论
madhan ravi
2019-3-18
编辑:madhan ravi
2019-3-18
No loop is needed for this trivial task and obviously this is homework.
另请参阅
类别
在 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!