필터 지우기
필터 지우기

Plot two graphs inside a loop and link markers with lines

조회 수: 1 (최근 30일)
A Basu
A Basu 2017년 7월 14일
댓글: David Fink 2017년 7월 18일
I am trying to plot a line plot for two graphs inside a for loop. The scatter plot working but the line plot is not working. Also I want to link the markers with the lines in a increasing manner. Would like to get some help if possible.
for i = 1:5:49
scatter(T -i*dt,expt_bls(:,i),25,'b');
title('Exposure vs Time','Fontsize',12,'Fontweight','bold','Color','k');
xt = get(gca, 'XTick');
yt = get(gca, 'YTick');
set(gca, 'FontSize', 12)
xlabel('Time')
ylabel(Exposure')
hold on
scatter(T - i*dt,expt_reg(:,i),25,'r');
legend('BS','Regression');
end
  댓글 수: 1
David Fink
David Fink 2017년 7월 18일
What do you mean by "link the markers with the lines in an increasing manner"? There are a bunch of properties you can modify, including marker color, line color, marker size, and line width.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by