MATLAB: How to change the units of a plot function in the plot tab

axisplotplotting

This plot was generated by pwelch(variable); figure(variable).
It's a predefined plot in the Plot tab. I need to multiply the X-axis by 5000 and change the displayed units.
How can I do this?

Best Answer

After producing the plot,
h = gca;
h.XTickMode = 'manual';
h.XTickLabel = h.XTick * 5000;
h.XLabel.String = 'Frequency (x \pi rad/sample)';
Note that this changes the tick labels, not the ticks themselves. So if you're setting axis limits, you'll continue working with the normalized units 0:1.