How to use i j k coordinate system
조회 수: 12 (최근 30일)
이전 댓글 표시
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개)
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
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 Center 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!