Q:

When would it matter if a for loop contained for i = 1:4 vs. for i = [3 5 2 6], and when would it not matter?

0

When would it matter if a for loop contained for i = 1:4 vs. for i = [3 5 2 6], and when would it not matter? 

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

It would matter if the value of the loop variable was being used in the action of the loop. It would not matter if the loop variable was just being used to count how many times to execute the action of the loop. 

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now