How to plot 3 y axis or more in a single graph?
Mostrar comentarios más antiguos
For example: I have to plot X=(1:1:50); Y1=sin(X); Y2=exp(X); Y3=(X).^2; For y-plot I want respective adjusted range of axis.
2 comentarios
Roy Kadesh
el 13 de En. de 2018
What do you mean? Do you mean you want to plot 3 lines in one figure?
UTKARSH VERMA
el 13 de En. de 2018
Editada: UTKARSH VERMA
el 13 de En. de 2018
Respuesta aceptada
Más respuestas (2)
Do you mean something like https://www.mathworks.com/matlabcentral/fileexchange/46688-jzplotys-zip or https://www.mathworks.com/matlabcentral/fileexchange/9016-addaxis? Or https://www.mathworks.com/help/matlab/ref/yyaxis.html (this one creates 2 axes only)?
4 comentarios
UTKARSH VERMA
el 14 de En. de 2018
Rik
el 14 de En. de 2018
If that submission works for you, why not use it? Or is your question how to use that function?
UTKARSH VERMA
el 14 de En. de 2018
yeswanth reddy
el 29 de Sept. de 2021
0 votos
plot((1:5),randi(25,1,5),'r')
addaxis((1:5),randi(25,1,5),'g')
addaxis((1:5),randi(25,1,5),'m')
addaxis((1:5),randi(25,1,5),'y')
legend({'plot1','plot2','plot3','plot4'})
Categorías
Más información sobre Two y-axis en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!