How can I change the units of a plot function in the plot tab?
조회 수: 19 (최근 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.
댓글 수: 2
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
