How to a two plot in same x value for different y value?
조회 수: 1 (최근 30일)
이전 댓글 표시
I write a matlab program as follow
clear all;clc;
file1;
y=0;
for t=1:100
y=y+2;
end
plot(y,'b','linewidth',3);
in file1.m has following program
k=0;
for t=1:100
k=k+1;
end
plot(k,'r','linewidth',3);
I want to got a single plot while calling a file1 its blue colour plot after that the plot has red colour in same x axis value.
채택된 답변
Cris LaPierre
2020년 3월 29일
If you have 15 minutes, I suggest going through Chapter 9 of MATLAB Onramp. It will introduce you to plotting in MATLAB.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!