Different color appeared while using helperSpec​trogramAnd​SpectralKu​rtosis() function

Hi, I just started to learn Matlab and quite new to Matlab. I followed the example in Rolling Element Bearing Fault Diagnosisn but my plot of using helperSpectrogramAndSpectralKurtosis(xOuter, fsOuter, level) get different color from the example . What caused it and how do I fix it?

 채택된 답변

I found the solution simply add
colorball
caxis('auto')
below the code of
plot([xlimits1 NaN xlimits1], [fc_scaled-BW_scaled/2 fc_scaled-BW_scaled/2 NaN fc_scaled+BW_scaled/2 fc_scaled+BW_scaled/2], '--')
in the matlab script file of helperSpectrogramAndSpectralKurtosis.m, then this problem is solved.

추가 답변 (0개)

카테고리

제품

릴리스

R2020b

질문:

2021년 2월 8일

답변:

2021년 2월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by