Clear Filters
Clear Filters

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?

1 view (last 30 days)
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

Answers (1)

Gowtham
Gowtham on 12 Sep 2023
Edited: Gowtham on 27 Sep 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

Categories

Find more on Argument Definitions in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!