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
0 件のコメント
回答 (1 件)
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
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Environment and Settings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!