Scaling of one axis only in 2D plot
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
hello eveyone,
I have the display on left. I want to get the diplay on the right (currently stretched using MS Word). Height of y-axis to stay same. How can I do it in MATLAB?
Thanks for your time in advance.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/342448/image.png)
0 Commenti
Risposta accettata
Cris LaPierre
il 6 Ago 2020
3 Commenti
Cris LaPierre
il 7 Ago 2020
To confirm, first try this
d= rand(100,1);
plot(d)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/342724/image.png)
Then try this
d= rand(100,1);
plot(d)
x0=10;
y0=10;
width=600;
height=200
set(gcf,'position',[x0,y0,width,height])
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/342727/image.png)
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!