필터 지우기
필터 지우기

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 CenterFile Exchange에서 Continuous Wavelet Transforms에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by