How do I get all the outputs of the ind2sub function ?
Show older comments
Say I have a variable dimension matrix A (it could have 2,3 ..n dimensions) so I could access it by A(x1,x2,...,xn). When I use a linear index 'lin_ind' how can get the matrix coordinates for that point ?
I could use
ind2sub(size(A),lin_ind)
but the problem is how to get 'all' the outputs for a variable dimension?
Accepted Answer
More Answers (0)
Categories
Find more on Matrices and 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!