MATLAB: How to name individual cells from a cell

cellindividual cellvariable

I'm creating a .mat file with some parameters (angle = array and transmission = cell 1×9 with 12000×20 individual cells). How do I name and save each 12000×20 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.

Best Answer

A bold guess: You want to use a struct?
Note that creating 12000x20 different variables or fields of a struct would be extremely inefficient and very ugly. You would have to hide an index in the names of the fields, and this is a bad idea. See Tutorial: Avoid the dynamic creation of variables.