save Network and connect Network (nntool) with GUI

ok...i have a question...
i've created a network, named network1 from nntool... now, how do i connect the network with my GUI (made by guide)... i mean, i've one button in my GUI, when i push the button i want to train the network. any answer will help me much... i will appreciate it.. thank you...
r4ndieL..

 채택된 답변

Chandra Kurniawan
Chandra Kurniawan 2012년 1월 11일

1 개 추천

Hi,
First, you need to save your network into MAT file.
Then place it in the same folder with your GUI.
In the pushbutton callback, you should call it by
load anyfilename.mat
Then, you can use it now. Use train command to train your network.
Eq :
output = train(net,P,T);
I hope this will helps you.

댓글 수: 2

randy
randy 2012년 1월 12일
thnkyou very much mas... udah ngerti saya... so, saving the Network1 to net1.mat, then load and train by callback button....
thankss..
r4ndieL..
Wow, nice to meet indonesian people :D

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

추가 답변 (1개)

miftahurrahma rosyda
miftahurrahma rosyda 2012년 4월 16일

0 개 추천

i've saved my network n load net in my gui than i code in my gui p is a data from gui object handle
a=sim(net,p)
but appear error message "Inputs are incorrectly sized for network. Matrix must have 0 rows."
when i tried it directly in command window, it successed, so why it happened when i use net in my gui?
thx b4 :D

댓글 수: 1

hello have you find any solution on this? because i have the same problem as yours.

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

카테고리

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

질문:

2012년 1월 11일

댓글:

2018년 5월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by