To assign array entries to their own variables in Matlab, you can use indexing. Here's an example:
main.m227 chars13 lines
The output of this code will be:
main.m6 chars4 lines
This approach can also be used for multi-dimensional arrays.
gistlibby LogSnag