MATLAB: WaveletAnalyzer_Not enough input arguments.

matlab 2017bWavelet Toolbox

Hello everybody…
I am new in using wavelet toolbox. While I try to use this toolbox, especially in Continuous Wavelet Transform 2-D, this message has always appeared, and the running process becomes stuck… could somebody help me please?
>>waveletAnalyzer
Not enough input arguments.
Error in rats (line 2) plot(t,y,'bo')
Error in cwtfttool2>getAngleSTR (line 1893) tempo = rats(val/pi);
Error in cwtfttool2>showScaleANAL (line 1325) angSTR = getAngleSTR(angles(idxANG));
Error in cwtfttool2>Pus_ANAL_Callback (line 268) showScaleANAL(handles,numSCA,'first');
Error in cwtfttool2>Load_Data_Callback (line 815) Pus_ANAL_Callback(handles.Pus_ANAL,eventdata,handles,param);
Error in cwtfttool2>Men_Example_Callback (line 665) Load_Data_Callback(hObject,eventdata,handles,'demo',optDEM,demoCell,numDEM);
Error in gui_mainfcn (line 95) feval(varargin{:});
Error in cwtfttool2 (line 31) gui_mainfcn(gui_State, varargin{:});
Error while evaluating Menu Callback.
Not enough input arguments.
Error in rats (line 2) plot(t,y,'bo')
Error in cwtfttool2>getAngleSTR (line 1893) tempo = rats(val/pi);
Error in cwtfttool2>showScaleANAL (line 1325) angSTR = getAngleSTR(angles(idxANG));
Error in cwtfttool2>Pus_ANAL_Callback (line 268) showScaleANAL(handles,numSCA,'first');
Error in gui_mainfcn (line 95) feval(varargin{:});
Error in cwtfttool2 (line 31) gui_mainfcn(gui_State, varargin{:});
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)cwtfttool2('Pus_ANAL_Callback',hObject,eventdata,guidata(hObject)) Error while evaluating UIControl Callback.

Best Answer

These clearly show that you have shadowed rats with a file in your user directories:
C:\Users\ASUS\Documents\MATLAB\rats.m % <--- this is the problem!
C:\Program Files\MATLAB\R2017b\toolbox\matlab\specfun\rats.m % Shadowed
You will need to rename the file C:\Users\ASUS\Documents\MATLAB\rats.m into something else or remove that directory from the MATLAB Search Path.