Loss and Fann function in app designer

2 ビュー (過去 30 日間)
Asad Elmgerbi
Asad Elmgerbi 2020 年 5 月 18 日
回答済み: Reshma Nerella 2021 年 11 月 7 日
Dears ,
I have question regrading loss and fann functions applicabality in app desinger .
I have the following code which calls loss funmction , the function i saved at the same directory as m file .
[x,~]=ga(@loss,Data_Size2,[],[],[],[],lb,ub,[],options);
My question how I can integrate it to the app design ?
here is the code for the functions
function MSE=loss(input)
global mdl expected ;
yp= predict(mdl,input);
MSE=abs(yp-expected);
end
....................
Hope to get your help
Thanks

採用された回答

Reshma Nerella
Reshma Nerella 2021 年 11 月 7 日
Hi,
You can call the .m or functions from app designer same as how we generally do it in Editor.
Additionally, you can take inputs through the app, send them as arguments to your functions and get the output back to the app designer and display them.
Fore more information, refer to the following documentation page: https://www.mathworks.com/help/matlab/app-designer.html?s_tid=CRUX_lftnav

その他の回答 (0 件)

カテゴリ

Find more on Package and Share Apps 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!

Translated by