I would like to get a graph similar to those in figure 1 in the attched file (not necessary the shaded area)
plot graph with values of y axis on the begining and the end
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
tilfani oussama
il 31 Lug 2018
Modificato: Naveed Ahmed
il 31 Lug 2018
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.
0 Commenti
Risposta accettata
tilfani oussama
il 31 Lug 2018
1 Commento
Naveed Ahmed
il 31 Lug 2018
Modificato: Naveed Ahmed
il 31 Lug 2018
Just add this line after the axis([10 500 -1 2])
axes('xlim', [10 500], 'ylim', [-1 2], 'color', 'none', 'YAxisLocation', 'right', 'XAxisLocation', 'top')
Is this what you want?
Più risposte (2)
Naveed Ahmed
il 31 Lug 2018
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/192812/image.jpeg)
Thanks
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!