How to make cross-section data along topographic surface

Hello,
I have matrix dimension 431x690 on a 3D surface (X,Y,Z). and would like to get cross section start from a point (200:214,310:370). This data provide matrix 15x61.
Any people can help me. I am eager using matlab.
Thank you!

 Accepted Answer

Let X,Y,Z be your 431X690 matrices. To extract 200:214,310:370, use:
X1 = X(200:214,310:370) ;
Y1 = Y(200:214,310:370) ;
Z1 = Z(200:214,310:370) ;
Your X1,Y1,Z1 will be of size 15X61.

3 Comments

I wanna make profile along 3D surface. How to do that?
This picture is my real problem. I can't figure it out how to extract data from the red line.
Which picture? Which red line? Is your problem solved now?

Sign in to comment.

More Answers (0)

Asked:

on 21 Nov 2016

Commented:

on 21 Nov 2016

Community Treasure Hunt

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

Start Hunting!