how can i write a for loop for g=[2 5 6 8 9]
Show older comments
i have g=[2 5 6 8 9]
i want to write a 'for loop' to increment g
g changes with respect to considered system
for i=1:g
for j=1:14
something
end
Answers (1)
5 Comments
kavya kolipakula
on 25 Feb 2019
madhan ravi
on 25 Feb 2019
what’s your expected output?
kavya kolipakula
on 25 Feb 2019
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!