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!