How do I plot together 5 different arrays?
1 回表示 (過去 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!