How can I plot 3 variables on y axis for the same variable on x axis in one plot?
Afficher commentaires plus anciens
I used 'yyaxis' left and right for plotting two variables and then tried 'addaxis.m' fucntion to add another axis. But there seems to be an error with the 'colorord' part.
Is there another way of doing this??
Any help would be great!
Thank you.
link for the package addaxis.m i used :
2 commentaires
darova
le 29 Avr 2020
Don't want to use subplot? OR just scale all data in one plot?
Sahil Patel
le 1 Mai 2020
Réponses (1)
Prasad Reddy
le 30 Avr 2020
you can use " hold on " command.
you can write your code in the following manner.
plot(x,y1)
hold on
plot(x,y2)
hold on
plot(x,y3)
this will work
%% please give up thumb if this code works.
1 commentaire
darova
le 30 Avr 2020
please use this

Catégories
En savoir plus sur 2-D and 3-D Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!