how i can use a model (net.mat) from Fitting Neural Network in App Designer

3 ビュー (過去 30 日間)
Juan Carlos Pozuelos Buezo
Juan Carlos Pozuelos Buezo 2019 年 10 月 23 日
Hi. i have a model (net.mat) fot predict de load electricity demand, from Neural Net Fitting. For get the result in space of matlab, i use these code: y_predict= sim(net,Xp_net')'. (Xp_net is the predictors for get the forecast).
Now, i whant to create a App Designer for use that model, but i don´t know how call the model into the app Designer.
From some information about it, i have :
  • in App Designer, i created a Private Property(net):
properties (Access = private)
net;
Y_predict;
end
  • for charge the model i used this code in startupFcn(app):
function startupFcn(app)
app.net.net = load("C:\Predictor Demanda S.N.I\App\net.mat"); %para predicción del día siguiente
app.net = app.net.net; %net pronostico dia siguiente
end
  • to excecute the model, into the callback i have:
[Y_predict] = sim(app.net, app.Xp_prediccion)
in that part, i have a problem, because de code is not not recognized.
how I can get Y_predict?. The idea is that the model is in a folder (C:\Predictor Demanda S.N.I\App), and is called by the app dessigner.
thanks for you help.
Juanc. Pozuelos
Guatemala

回答 (0 件)

カテゴリ

Help Center および File ExchangeGetting Started with Microsoft .NET についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by