plot graph with values of y axis on the begining and the end
Mostrar comentarios más antiguos
I have three array vectors, beta, betal and betau, i would like to plot them on the same grpah. The x axis is scale ranging from 10 to 500, i did this to plot them
plot(scale,beta,scale,betau,scale,betal) ;
axis([10 500 -1 2])
My aim is to get values of y (beta values ranging from -1 to 2) on the right and on the left of my graph.
Respuesta aceptada
Más respuestas (2)
KSSV
el 31 de Jul. de 2018
LEt x,y be your values.
%
idx = y>1&y<2 ;
plot(x(idx),y(idx))
1 comentario
tilfani oussama
el 31 de Jul. de 2018
Editada: tilfani oussama
el 31 de Jul. de 2018
Naveed Ahmed
el 31 de Jul. de 2018
0 votos
Hi,
If I understand by your last statement, do you want to get the plot as shown in the image? If not, please draw by hand the way you want to display your data.

Thanks
Categorías
Más información sobre Graphics 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!