
modwt expression works fine in editor but same gives error in app designer (error: needs atleast 2 inputs ) my signal has more than two inputs how to overcome this?
    7 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
modwt expression works fine in editor but gives error in app designer. this didnt happen with earlier versions. so my concern is this due to change in version of matlab .
 wt = modwt(ecg,'sym4',5);
ecg is an array of 1*3600 double
0 Commenti
Risposte (1)
  Gowtham
      
 il 12 Set 2023
        
      Modificato: Gowtham
      
 il 27 Set 2023
  
      Hello Jeenal,
I understand that you are facing an issue with using modwt in app designer. This issue doesn’t persist in the latest version of MATLAB R2023a.
The Test button utilizes a callback to execute the desired code, providing a sample demonstration of this process.
    properties (Access = private)
        ecg % Description
    end
    % Callbacks that handle component events
    methods (Access = private)
        % Code that executes after component creation
        function startupFcn(app)
            app.ecg = rand(1, 3600);
        end
        % Button pushed function: TestButton
        function TestButtonPushed(app, event)
            wt = modwt(app.ecg, 'sym4', 5);
            size(wt)
        end
    end

I suggest you use the latest version of MATLAB to overcome this issue. But if you want to resolve it in the version of MATLAB you are currently using, please provide the version details.
Kindly refer to the following documentation for further understanding on callbacks in app designer https://www.mathworks.com/help/matlab/creating_guis/write-callbacks-for-gui-in-app-designer.html 
Hope this helps in resolving the issue you were facing!
Regards,
Gowtham
0 Commenti
Vedere anche
Categorie
				Scopri di più su Startup and Shutdown in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

