How to create array xy corresponding z

Hello
I have a problem with array. Now, I have xy, that is 640x480. Then I know the values of each z, that is 480 values correspoding to y axis.
I would like to ask that how can I make XYZ array.
I try to use cat already. But it is 640x480x2 (xyz) that is 2 pages, that the first page is 640x480 and the second page is z values. I don't know I can link the first page with the second page or not.
If you have an idea, please suggest to me.
Thank you so much

댓글 수: 2

madhan ravi
madhan ravi 2020년 7월 11일
So x has 680 and y has 480 elements , correct?
SP
SP 2020년 7월 11일
Yes sir. And z values corresponding to y axis (along horizontal axis).

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

답변 (1개)

madhan ravi
madhan ravi 2020년 7월 11일

0 개 추천

xyz = {x(:), y(:), z(:)}

댓글 수: 3

SP
SP 2020년 7월 11일
Thank you sir.
If I use cat, can I link the second page with the first page ?
Look like I create 3D array. I have 640x480x2. In second page, I have 640x480 same with first. Can I link the matrix the first page corresponding to the second page ?
madhan ravi
madhan ravi 2020년 7월 11일
If you could illustrate aiding a 2X2X2 matrix and state explicitly how it should look like, would be better.
SP
SP 2020년 7월 11일
Assume like this. I have XY plane like in this figure. And Z in my work is depth position corresponding to y-axis. Assume I will plot graph 3d, it means that I need to use Z but Z is in the second page.
I would like to ask that can I link the Z in second page to XY plane correspondng to y-axis in first page .

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

카테고리

도움말 센터File Exchange에서 Matrix Indexing에 대해 자세히 알아보기

제품

릴리스

R2019b

질문:

SP
2020년 7월 11일

댓글:

SP
2020년 7월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by