How can I change the units of a plot function in the plot tab?
71 次查看(过去 30 天)
显示 更早的评论
采纳的回答
Adam Danz
2019-4-1
编辑:Adam Danz
2019-4-1
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!