How do I plot together 5 different arrays?
조회 수: 7 (최근 30일)
이전 댓글 표시
Hi, I have 5 different arrays from different script of matlab. Who do I save this 5 arrays (the values in the array are foundamental) in another script and plot them all together?
댓글 수: 0
채택된 답변
Chetan Bhavsar
2021년 10월 1일
편집: Chetan Bhavsar
2021년 10월 1일
for example,
In file 1
x = linspace(-pi,pi);
y1 = sin(x);
plot(x,y1)
hold on
In file 2
x = linspace(-pi,pi);
y2 = cos(x);
plot(x,y2)
% holf off if its last file or you can continue hold on
hold off
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!