problem in integrating pre trined ANN regression model in appdesigner

8 ビュー (過去 30 日間)
kouadri saber
kouadri saber 2022 年 1 月 14 日
回答済み: Rahul 2025 年 1 月 24 日 11:20
Hi
i want to use a pre trained ANN regression model in the app designer, but i did not find out how to do that.
any help...

回答 (1 件)

Rahul
Rahul 2025 年 1 月 24 日 11:20
In order to integrate a pre trained regression model in MATLAB App Designer, consider looking at the following MATLAB Answers:
They suggest that you can integrate a regression model in MATLAB App Designer by the following step and code snippets:
  • Defining a property for the 'model' in App Designer
properties (Access = private)
model;
end
  • Loading the model using 'load' function to the 'model' property in a startupFcn of the App.
function startupFcn(app)
app.model = load('model.mat')
end
  • The 'predictFcn' function of the model can be called in the callback of a Push Button
function ButtonPushed(app, event)
app.model.predictFcn(app.data) % I have added app.data just as an example.
end
The following MathWorks documentations can be referred to know more:
Thanks.

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by