フィルターのクリア

waveletTim​eFrequency​Analyzer error

1 回表示 (過去 30 日間)
Yizhou
Yizhou 2023 年 10 月 20 日
コメント済み: Yizhou 2023 年 10 月 25 日
Hello,
I am using the waveletTimeFrequencyAnalyzer to perform continuous wavelet analysis following the example in the wavelet toolbox User Guide. I was able to do it on some occasions on one computer (Mac). I kept running into an error when importing the signal with two other computers (Macbook Pro and Windows10). All have Matlab 2023a installed.
Here is what I did:
load wecg
Fs = 180;
waveletTimeFrequencyAnalyzer
In the GUI, click Import Signals and select wecg.
The GUI could not load the signal and the terminal had the following error message:
Warning: Error occurred while executing the listener callback for event CalculateAxes defined
for class wavelettfanalyzer.internal.controllers.ImportController:
Error using gather
Too many input arguments.
Error in wavelet.internal.cwt.plotScalogram (line 38)
[wt,freq] = gather(wt,freq);
Error in wavelettfanalyzer.internal.views.AxesView/calculateAxes
Error in wavelettfanalyzer.internal.views.AxesView/cb_CalculateAxes
Error in wavelettfanalyzer.internal.views.AxesView>@(~,args)this.cb_CalculateAxes(args)
Error in wavelettfanalyzer.internal.controllers.ImportController/calculateAxes
Error in wavelettfanalyzer.internal.controllers.ImportController/calculateScalogramCompleted
Error in wavelettfanalyzer.internal.controllers.ImportController/cb_ImportSignals
Error in
wavelettfanalyzer.internal.views.ImportView>@(~,~)this.ImportController.cb_ImportSignals(false,true,this.ImportFigure)
> In wavelettfanalyzer.internal.controllers/ImportController/calculateAxes
In wavelettfanalyzer.internal.controllers/ImportController/calculateScalogramCompleted
In wavelettfanalyzer.internal.controllers/ImportController/cb_ImportSignals
In wavelettfanalyzer.internal.views.ImportView>@(~,~)this.ImportController.cb_ImportSignals(false,true,this.ImportFigure)
In matlab.ui.control.internal.controller/ComponentController/executeUserCallback (line 349)
In matlab.ui.control.internal.controller/ComponentController/handleUserInteraction (line 498)
In matlab.ui.control.internal.controller/PushButtonController/handleEvent (line 95)
In appdesservices.internal.interfaces.controller.AbstractController>@(varargin)obj.handleEvent(varargin{:}) (line 220)
In viewmodel.internal.factory.ManagerFactoryProducer>@(src,event)callback(src,viewmodel.internal.factory.ManagerFactoryProducer.convertStructToEventData(event)) (line 79)
Warning: Error occurred while executing the listener callback for event UpdatePlot defined for
class wavelettfanalyzer.internal.controllers.ImportController:
Error using indexing
The specified key is not present in this container.
Error in wavelettfanalyzer.internal.views.AxesView/updatePlot
Error in wavelettfanalyzer.internal.views.AxesView/cb_UpdatePlot
Error in wavelettfanalyzer.internal.views.AxesView>@(~,args)this.cb_UpdatePlot(args)
Error in wavelettfanalyzer.internal.controllers.ImportController/updatePlot
Error in wavelettfanalyzer.internal.controllers.ImportController/importSignalsComplete
Error in wavelettfanalyzer.internal.controllers.ImportController/cb_ImportSignals
Error in
wavelettfanalyzer.internal.views.ImportView>@(~,~)this.ImportController.cb_ImportSignals(false,true,this.ImportFigure)
> In wavelettfanalyzer.internal.controllers/ImportController/updatePlot
In wavelettfanalyzer.internal.controllers/ImportController/importSignalsComplete
In wavelettfanalyzer.internal.controllers/ImportController/cb_ImportSignals
In wavelettfanalyzer.internal.views.ImportView>@(~,~)this.ImportController.cb_ImportSignals(false,true,this.ImportFigure)
In matlab.ui.control.internal.controller/ComponentController/executeUserCallback (line 349)
In matlab.ui.control.internal.controller/ComponentController/handleUserInteraction (line 498)
In matlab.ui.control.internal.controller/PushButtonController/handleEvent (line 95)
In appdesservices.internal.interfaces.controller.AbstractController>@(varargin)obj.handleEvent(varargin{:}) (line 220)
In viewmodel.internal.factory.ManagerFactoryProducer>@(src,event)callback(src,viewmodel.internal.factory.ManagerFactoryProducer.convertStructToEventData(event)) (line 79)
I have a similar error using commandline following the example in help cwt
load kobe;
plot((1:numel(kobe))./60,kobe);
xlabel('mins'); ylabel('nm/s^2');
grid on;
title('Kobe Earthquake Data');
figure;
cwt(kobe,1)
Here is the error message:
Error using gather
Too many input arguments.
Error in cwt>plotscalogramfreq (line 775)
[wt,freq] = gather(wt,freq);
Error in cwt (line 338)
plotscalogramfreq(FourierFactor,sigmaT,cfs,freq,t,tfnormfreq);
Could someone please help me out?
Thanks!

採用された回答

Walter Roberson
Walter Roberson 2023 年 10 月 23 日
  1 件のコメント
Yizhou
Yizhou 2023 年 10 月 25 日
Thank you very much, Walter. I think you are right. I changed the name of the gather function in eeglab. Now I can use the waveletTimeFrequencyAnalyzer fine.

サインインしてコメントする。

その他の回答 (1 件)

Ishaan
Ishaan 2023 年 10 月 23 日
Hi Yizhou,
I understand that you are facing the following error while using "waveletTmeFrequencyAnalyzer" application and the "cwt" function:
"Error using gather
Too many input arguments"
It seems this issue could be arising while using New Desktop for MATLAB with MATLAB R2023a. Since New Desktop for MATLAB was initially offerred as a beta version in MATLAB R2023a, it could be unstable and can occassionally demonstrate unexpected behaviors and errors.
If you are using the New Desktop for MATLAB, you can try to use the "waveletTmeFrequencyAnalyzer" application after returning to the default desktop by clicking on the "Stop New Desktop" button near the search bar on the MATLAB home screen, as can be seen in the following image:
Hope it helps,
Ishaan Mehta
  1 件のコメント
Yizhou
Yizhou 2023 年 10 月 25 日
Thank you very much, Ishaan. However I do not seem to be using New Desktop and I could not find the "Stop New Desktop" button you showed.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeContinuous Wavelet Transforms についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by