필터 지우기
필터 지우기

Please let me know if its possible to draw a cross section profile across a mesh plot of gravity data?

조회 수: 4 (최근 30일)
So the image is what the plot looks like, it does have a 3d appeal when you rotate. I want to filter the plot from 800 to 1000 on the Y axis and 1000 to 1200 on the x axis. After that i want to draw an east-west cross section. Is this possible in matlab? I plotted the mesh plot by right clicking on the data variable "g" in the workspace and choosing mesh plot. That is probably an incorrect way of doing it but can i please get guidance? I am not very experienced and im trying to learn.
  댓글 수: 3
Thashen  Naidoo
Thashen Naidoo 2018년 10월 28일
sort of like crop the image to along the value i specified just to get a better view of the part that i want to inspect from 800 to 1000 on the Y axis and 1000 to 1200 on the x axis. The main thing is drawing the cross section? Please assist if you can.
Image Analyst
Image Analyst 2018년 10월 28일
Please, at least try the answer I gave below. And again, upload your image if you can't figure it out so we can make a more complete demo for you.

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

채택된 답변

Image Analyst
Image Analyst 2018년 10월 28일
Sure. Looks like you have a 2-D array of gravity data. So just define two points and use improfile() to get a profile between them. Upload your image if you need more help.
p = improfile(grayImage, [x1,x2], [y1,y2]);
plot(p, 'b-', 'LineWidth', 2);
grid on;
  댓글 수: 4
Thashen  Naidoo
Thashen Naidoo 2018년 10월 28일
wow, thank you so much, It worked so great. Thank you! i learnt something new in matlab.Would this work for all dimensions of data?

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by