Function in a for loop
1 view (last 30 days)
Show older comments
Tobias Dehn Nielsen on 1 Nov 2021
Commented: Tobias Dehn Nielsen on 2 Dec 2021
I have created a function where the output i a matrix.
I want to create a for loop thats creates n different matrices based on that function. How do i do that?
Abhishek Kolla on 5 Nov 2021
The code snippet below should solve your question
where A is 3D array. More info on higher dimensional arrays can be found here Multidimensional Arrays - MATLAB & Simulink (mathworks.com)
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!