How to specify an exact value of variable in (For Loop)
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ali Tawfik
am 12 Jul. 2019
Kommentiert: Ali Tawfik
am 12 Jul. 2019
Hi all,
I am doing a for loop, but I am wondering how can I extract/specify a value of x when i =2 or 3?, the x now has 3 different values, how can I extract a specific value.
for i=1:3
x=i+2
end
Thanks,
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!