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 (최근 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에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by