How do I plot together 5 different arrays?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
C B
le 1 Oct 2021
Modifié(e) : C B
le 1 Oct 2021
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
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Line Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!