Can an entire structure be iterated in a loop?
Show older comments
I have a function that outputs a structure. I need to run this function through a series of iterations. Is it possible to iterate the entire output structure as shown below? I would like to save the structure after running through the loop as well. The code operates as follows:
for a = 1:100
for b = 1:100
% input changes per iteration
structure(a,b) = function(input);
end
end
save('path\to\destination\folder','-struct','structure');
Accepted Answer
More Answers (0)
Categories
Find more on Structures in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!