Borrar filtros
Borrar filtros

Range selection in matlab plots

20 visualizaciones (últimos 30 días)
venkat siddhartha rama
venkat siddhartha rama el 31 de En. de 2020
Respondida: Star Strider el 31 de En. de 2020
hello all,
I need some help with plotting. I have am plotting a set of data points as shown in figure. There are no 0 value data points in the set that I am plotting, but I want to have zero point on the plot. I want the x and y axis scales starting from 0. I am looking forward to hear from you guys.
Thanks.1.jpg

Respuestas (1)

Star Strider
Star Strider el 31 de En. de 2020
Change the lower ylim limit to zero:
x = 0:19;
y = randi([5 9], 1, 20);
figure
plot(x, y, 'p')
ylim([0 max(ylim)]) % Change The Lower ‘ylim’ Limit To Zero

Community Treasure Hunt

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

Start Hunting!

Translated by