for loop question
1 view (last 30 days)
Show older comments
hello i'm trying tom make my for loop iterate 100,1000,10000 and 100000 times using this code
n=[1 2 3 4]
for i=1:1:100.^n
r= i
end
for some reason it only iterates once can someone tell me why please and help me fix it
0 Comments
Accepted Answer
More Answers (0)
See Also
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!