arrays in loops, changing variable names (i.e. A{1}, A{2}, ...)
Show older comments
I'm trying to use arrays to store information in a different variable with each iteration in a for-loop.
I used A{i}=edge(BW,'canny'); inside the loop (using curly brackets as the information is a matrix)
However, once I run the program, matlab does not return a A{1} or A{2} (and so on), but A{i} does exist. Any advice on what I've done wrong?
Accepted Answer
More Answers (0)
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!