How create a list of like this A{1}, A{2}, A{3}, A{4},... etc.?

1 view (last 30 days)
Hello,
How I automatic create a list of like this A{1}, A{2}, A{3}, A{4},... etc. in Matlab?

Answers (1)

Steven Lord
Steven Lord on 6 Feb 2020
If you already have a cell array A, use:
A{:}
to create a comma-separated list from A.
If you're trying to create the cell array A, see the "Create Cell Array" topic on this documentation page for examples of how to make a cell array.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!