How to use i j k coordinate system

26 views (last 30 days)
AM-Laurentian
AM-Laurentian on 17 Jan 2016
Commented: Rena Berman on 24 Jan 2017
Dear Sir, How can I use i j &k system to find the location of certain point. I am writing a MATLAB code for an open pit mine that contains of 50 blocks, 25 blocks each level. But I have first before any further calculations to check the location of the block using I j & k coordinate system. For example, I have a block (A) situated on the first level, and I want to check the location of the 9 blocks on the second level that locate directly above the block A.

Answers (1)

Image Analyst
Image Analyst on 17 Jan 2016
i, j, and k ARE the location. So you already have the location. If you have array "A", then A(i,j,k) is the value not location.
Your question is not complete. You say "I have to examine that the required point situated on exact i j k location before I continue the calculations." That's grammatically incorrect. You have to examine that the point at location (i,j,k) is what before you continue???
  1 Comment
Image Analyst
Image Analyst on 17 Jan 2016
I don't understand this phrase "where; i for(A) - i for the block above must equal 0 or 1 ore -1 as well as for j" What does that mean?
So usually 1 is rows and is the first index. j is columns and is the second index. And k is planes or slices along the "z" (vertical) direction and is the third index.
Now, you have "blocks" (whatever those are?????) on the second level, in other words somewhere on A(:,:,2). I'm going to take a wild guess that by "block" you mean a connected/touching set of elements within a certain "level". If so, are you wanting to know if any parts of those blocks overlap the block on the first level? And you say only 9 should overlap the first level block? But what if there's 10? Then what?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!