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

답변 (1개)

KSSV
KSSV 2019년 3월 18일

0 개 추천

Read about fprintf
for i = 1:6
fprintf('Here we go the loop %d\n',i)
end

댓글 수: 2

madhan ravi
madhan ravi 2019년 3월 18일
편집: madhan ravi 2019년 3월 18일
No loop is needed for this trivial task and obviously this is homework.
KSSV
KSSV 2019년 3월 18일
He is a new bee....

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

제품

태그

질문:

2019년 3월 18일

댓글:

2019년 3월 18일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by