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?

2 次查看(过去 30 天)
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

回答(1 个)

Gowtham
Gowtham 2023-9-12
编辑:Gowtham 2023-9-27
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

类别

Help CenterFile Exchange 中查找有关 Argument Definitions 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by