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?

 採用された回答

Tan Sin Hong
Tan Sin Hong 2021 年 2 月 25 日
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