How to input multiple lines on a graph
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Ashley Megow
il 22 Ott 2020
Risposto: Monisha Nalluru
il 28 Ott 2020
I imported my data from excel, and i want to compare to different y values on a line graph. How to i add the second y value
Risposta accettata
Monisha Nalluru
il 28 Ott 2020
As a example
x = linspace(-pi,pi);
y1 = sin(x);
y2 = cos(x);
plot(x,y1); % first line
hold on
plot(x,y2); % second line
hold off
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!