I have matrices of varying dimensionality I need to index.
So just writing A(i1,...,in) is not an option because n can vary in my application.
What is known to work for getting a single element out of A is using a cell array:
However I'd like to do something like SubMatrix= A(i1,i2,...,im,:,:,...,:), where m<n. Is there a way to do that?
The following does not work:
Thanks in advance for any hints.