How do I plot together 5 different arrays?
3 次查看(过去 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!