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

Antworten (1)

KSSV
KSSV am 18 Mär. 2019

0 Stimmen

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

2 Kommentare

madhan ravi
madhan ravi am 18 Mär. 2019
Bearbeitet: madhan ravi am 18 Mär. 2019
No loop is needed for this trivial task and obviously this is homework.
KSSV
KSSV am 18 Mär. 2019
He is a new bee....

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange

Produkte

Tags

Gefragt:

am 18 Mär. 2019

Kommentiert:

am 18 Mär. 2019

Community Treasure Hunt

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

Start Hunting!

Translated by