MATLAB: How to plot from negative base instead of zero

matlab plotnegative base

I have to plot the image in matlab for some reason, and the value needs to be plotted from -125 instead of zero. If i use plot/stem function, it plots to both positive and negative side from zero. how do i start plot base from -125 and plot towards positive.

Best Answer

You can use the stem BaseValue option; see https://www.mathworks.com/help/matlab/ref/stem.html#btrw_xi-98
Related Question