Hello, I have data in array like the image below. 1st coloumn of array is x axis, 2nd coloumn of array is y axis and 3th coloumn of array is the corresponding value. How can I plot this data?

 채택된 답변

KL
KL 2017년 10월 30일

1 개 추천

f = figure;
p = plot(array(:,1),array(:,2));
p(1).LineWidth = 2;
p(2).Marker = '.';
ax = gca
ax.XLim = [0 0.55];
ax.YLim = [0 0.2];
you can customize more specifications using the figure (f), line (p) and axis (ax) handles. https://de.mathworks.com/help/matlab/learn_matlab/understanding-handle-graphics-objects.html

댓글 수: 3

theintern
theintern 2017년 10월 30일
Thank you so much @KL. So, I have other graphs which has sharp lines. I want to make them splines. Could you help about that?
Jan
Jan 2017년 10월 30일
Perhaps you want plot3(), because you are asking for X,Y and Z values. To get a spline, use the command spline. See:
doc spline
KL
KL 2017년 10월 30일

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

추가 답변 (0개)

카테고리

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

태그

질문:

2017년 10월 30일

댓글:

KL
2017년 10월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by