Borrar filtros
Borrar filtros

Scaling the y axis in the matlab plots

10 visualizaciones (últimos 30 días)
Aditya
Aditya el 1 de Sept. de 2012
Hi,
I am plotting certain amount of data in matlab. I want to scale my y axis in the plot. For e.g: The minimum value i want on y axis is 0 and the maximum value i want on y axis is 100 although the maximum value i m having in my data to be plotted is 50.But on the polt i want my y axis to be shown till 100.
Please help me in this case

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 1 de Sept. de 2012
Editada: Azzi Abdelmalek el 1 de Sept. de 2012
plot(t,y);
set(gca,'xlim',[xmin xmax],'ylim',[ymin ymax])
% you can use 'xlim' or 'ylim' or both

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by