필터 지우기
필터 지우기

user defined time-axis of the plot by "rpmfreqmap"

조회 수: 4 (최근 30일)
Yuantong Li
Yuantong Li 2020년 5월 1일
댓글: Yuantong Li 2020년 5월 7일
Hi,
is it possible to change the time-axis in the plot, which is created by "rpmfreqmap"? The default time-axis (yellow highlighted at the bottom of the picture) starts always from 0 second. Obviously there is no space for the input in "rpmfreqmap" to define a time-axis by users themselves. I would like to only change the scales in time-axis (e.g. starting from 5 sec and ending at 10 sec) without changing any other plottings in the picture. Is that possible? How does it work?
Thank you!
Yuantong

채택된 답변

Samatha Aleti
Samatha Aleti 2020년 5월 6일
편집: Samatha Aleti 2020년 5월 6일
Hi,
You can change the "x-axis" limits of the plot obtained using "rpmfreqmap", without changing the data using the axes handle as follows:
hf = findall(0,'Type','axes'); % Gets the handle to all axes
hf(6).XLim = [5,10];
hf(6).XTick = 5:10;
hf(6).XTickLabel = cellstr(string(hf(6).XTick));

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Acoustics, Noise and Vibration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by