필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
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 CenterFile Exchange에서 Getting 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