How do I get the x y coordinates from an index?
Show older comments
If I have a matrix
A =[0.1 0.2 0.3
0.4 0.5 0.6
0.7 0.8 0.9];
And i have index 4, how do I get the x and y values for index 4.
In this case I want to get x = 2 y =1.
Accepted Answer
More Answers (0)
Categories
Find more on Matrix Indexing 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!