How to increase axis of stem plots

8 Ansichten (letzte 30 Tage)
Noah Lauer
Noah Lauer am 27 Feb. 2021
Bearbeitet: KALYAN ACHARJYA am 27 Feb. 2021
I am trying to create a stem plot and using the following code:
x=[100,500,1000]
y=[2,8,6]
stem(x,y)
however, i need the graph to start at value 0 and end at 1400 on x axis.
I also need the y value to start at 0 and end at 16, so that there is some space around the ploted points.

Antworten (2)

KALYAN ACHARJYA
KALYAN ACHARJYA am 27 Feb. 2021
Bearbeitet: KALYAN ACHARJYA am 27 Feb. 2021
xlim([0,1400 ])
Do the same for y axis
ylim([0 16])

Steven Lord
Steven Lord am 27 Feb. 2021
Use the axis function to set the limits.

Kategorien

Mehr zu Stem Plots finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by