How do I name individual cells from a cell
Show older comments
I'm creating a .mat file with some parameters (angle = array and transmission = cell 1x9 with 12000x20 individual cells). How do I name and save each 12000x20 cell with the name "generic" + individual component of the array "angle". Note that cells in "transmission" were calculated based off the order of angle, so order should already be matched up. Necessary for calculations based off another function.
4 Comments
Jan
on 30 May 2018
What does "cell 1x9 with 12000x20 individual cells" exactly mean? The expression "save each 12000x20 cell with the name "generic" + individual component of the array angle" is not clear also. I do not understand this also: "Necessary for calculations based off another function."
fernando aguirre
on 30 May 2018
Stephen23
on 31 May 2018
"How do I name and save each 12000x20 cell with the name "generic" + individual component of the array "angle""
Don't do this. Using indexing is much simpler, most efficient, and easier to debug.
"Note that cells in "transmission" were calculated based off the order of angle, so order should already be matched up"
That is exactly what indexing does: keeps things in a particular order. So easy with indexing!
fernando aguirre
on 31 May 2018
Accepted Answer
More Answers (0)
Categories
Find more on Cell Arrays 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!