Hello friends, I have a issue im my standalone aplication and I wonder if someone with more experience and knowledge could help me, please :).
My program make some forecasts for diferent groups of things using a neural network previously trained and it works fine using matlab, but when i make a standalone for the same program the funtion wich obtain the forecast doesn't work.
Here is where i think the problem is:
Entradas=[s1,s2,tmax,tmin,cosDDS,cosH,senDDS,senH,fer];
Entradas=transpose(Entradas);
out=net(Entradas) ; It seems that the app do not recognize this command
out=transpose(out);
The others funtions of the standalone app works fine but the most important fails and i don't no how to fix it.
I'm using Matlab R2012b.
Regards, thank you for your time :)

 채택된 답변

Greg Heath
Greg Heath 2014년 3월 26일

0 개 추천

It seems that net is not recognized.
Explicitly introduce it in the call of the function.
Hope this helps.
Thank you for formally accepting my answer
Greg

댓글 수: 2

Thank's for your answer Greg, but i don't understand what you mean..
How can i explicitly introduce it in the call of the function?
Thank you.
Change
output = function(input)
to
output = function(input, net)
Add net to input
HTH
Greg

댓글을 달려면 로그인하십시오.

추가 답변 (2개)

Ricardo Rodrigues
Ricardo Rodrigues 2014년 4월 2일

0 개 추천

Thank's Greg but the program doesn't work that way, it gives me the following error;
Error using network/sim>simData (line 370)
Input delay states is not a matrix or cell array.
Error in network/sim (line 291)
[data,err] = simData(net,X,Xi,Ai,T,EW);
Error in network/subsref (line 17)
otherwise, v = sim(vin,subs{:});
Error in Teste>pbPrevisao_Callback (line 266)
out=net(Entradas,net);
Error in gui_mainfcn (line 96)
feval(varargin{:});
Error in Teste (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in @(hObject,eventdata)Teste('pbPrevisao_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating uicontrol Callback
I don't what to do to this working...

댓글 수: 1

Greg Heath
Greg Heath 2014년 4월 3일
편집: Greg Heath 2014년 4월 3일
You misinterpreted my answer. Use
Entradas=[net,s1,s2,tmax,tmin,cosDDS,cosH,senDDS,senH,fer];
Greg

댓글을 달려면 로그인하십시오.

Andreas Goser
Andreas Goser 2014년 4월 2일

0 개 추천

I am not familiar enough with the NN Toolbox, but here is the reference page of what is supported an not:
Can be compiled: Pre-trained network command line functions
Cannot ne compiled: All other command line functionality - Apps and UIs - Simulink blocks - gensim

카테고리

도움말 센터File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

질문:

2014년 3월 26일

편집:

2014년 4월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by