필터 지우기
필터 지우기

How to plot all curves according to their XY coordinates?

조회 수: 2 (최근 30일)
Nisar Ahmed
Nisar Ahmed 2021년 8월 14일
댓글: Nisar Ahmed 2021년 8월 27일
Hi,
In the figure attached below, each VT curve have XY cordinates. I want to plot these curves according to the XY coordinate position. How I can write my figure code. Suppose the X nd Y coordinates of first line (left side) are ''XY location X = 458158.62, Y = 6526223.5''. Similarly all the other curves have XY location values. How I can incorporate XY positions in such a way that these plots are according to respective coordinates.
  댓글 수: 9
Nisar Ahmed
Nisar Ahmed 2021년 8월 27일
Now I have z file as well. Please see the attached data:
I want to plot imagesc(d, TWTi, vp). I mean TWTi along y axis and is common for all vp curves. while d is the distance between each vp curve.
Can you please help me to produce a figure?
Adam Danz
Adam Danz 2021년 8월 27일
Sorry, but I really don't know what the question is. If you want to plot imagesc(d, TWTi, vp), what's preventing you from doing so? And how does that relate to the line plot in your question?

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

채택된 답변

Chunru
Chunru 2021년 8월 27일
편집: Chunru 2021년 8월 27일
load d_data.mat
load TWTi_data.mat
load vp_data_plotting.mat
vpmax = max(vp(:));
vpmin = min(vp(:));
vpave = mean(vp(:));
deltad = (max(d)-min(d))/length(d);
v = (vp - vpave)/(vpmax-vpmin) * deltad * 2 + d;
subplot(121)
plot(v, TWT1i);
set(gca, 'YDir', 'reverse');
xlabel('d');
ylabel('z');
subplot(122);
p = pcolor(d, TWT1i, vp);
p.EdgeColor = 'none';
axis ij
colorbar
  댓글 수: 5
Chunru
Chunru 2021년 8월 27일
For example:
colormap(jet(512))

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

추가 답변 (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