How to use i j k coordinate system

조회 수: 12 (최근 30일)
AM-Laurentian
AM-Laurentian 2016년 1월 17일
댓글: Rena Berman 2017년 1월 24일
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.
  댓글 수: 1
Rena Berman
Rena Berman 2017년 1월 24일
(Answers dev) Restored question.

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2016년 1월 17일
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
Image Analyst
Image Analyst 2016년 1월 17일
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?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by