How to loop through cell arrays 3d
Show older comments
I have a 444x200x400 cell array, called chirps, that I am trying to loop through and do an equation on each cell. How would I do this?
Answers (1)
Ameer Hamza
on 28 Sep 2020
Edited: Ameer Hamza
on 28 Sep 2020
0 votes
See cellfun(): https://www.mathworks.com/help/matlab/ref/cellfun.html. You can specify a function handle that will be applied to each cell in the array.
1 Comment
Nurul Ain Basirah Zakaria
on 29 Sep 2020
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!