How to change plotted graph's line?

조회 수: 2 (최근 30일)
Ali Deniz
Ali Deniz . 2022년 10월 10일
댓글: Ali Deniz . 2022년 10월 10일
I have two matrices which are 200*5 and 201*5. I want to plot a graph from these two matrices. as X component is from the one, Y component is from the other. I have an algoritm below. When I select the line as a star (*), it is plotted but I want it as a line. How can I do it? Thank you.
%for plotting
[row col]=size(Vdt);
for m=1:col
for n=1:row-1
hold on

채택된 답변

the cyclist
the cyclist 2022년 10월 10일
편집: the cyclist 님. 2022년 10월 10일
If you leave the marker symbol off, the plot command will default to using a solid line with no symbol. You can also just explicitly specify a solid line with no symbol:
You can read more in the documentation for the plot function, in particular this example (and ones following) from that same page.
  댓글 수: 7
Ali Deniz
Ali Deniz 2022년 10월 10일
That's good idea also. Thank you.

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

추가 답변 (0개)


Help CenterFile Exchange에서 Discrete Data Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by