Help with rpmfreqmap Error

6 Ansichten (letzte 30 Tage)
RichardB
RichardB am 18 Feb. 2020
Beantwortet: RichardB am 24 Feb. 2020
I'm trying to create a Campbell, or waterfall plot for a rotating machinery problem. I have been trying to use the rpmfreqmap function, but keep getting theser errors (pretty sure I have positive values):
Error using rpmfreqmap
Expected RPM to be positive.
Error in rpmmap>parseOptions (line 256)
validateattributes(rpm,{'numeric'},...
Error in rpmmap (line 12)
parseOptions(maptype,x,fs,rpm,varargin{:});
Error in rpmfreqmap (line 107)
[varargout{1:nargout}] = rpmmap(x,fs,rpm,'frequency',varargin{:});

Akzeptierte Antwort

RichardB
RichardB am 24 Feb. 2020
I'm going to answer my own question. The "RPM" needs to be positive as the error states. I modified the signal to be absolute which did not work. Turns out it does not like zeros either. So, I added a very small offset so that all "RPM" values were >0.

Weitere Antworten (0)

Kategorien

Mehr zu Specifying Target for Graphics Output finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by