how to save value from edit text box in GUI MATLAB

조회 수: 1 (최근 30일)
Ahmad Farhan
Ahmad Farhan 2015년 6월 14일
답변: Walter Roberson 2015년 6월 14일
hi, i create some simple GUI for my ANN... the GUI contain 6 edit box and 1 pushbutton... when the user click the pushbutton, all value enter by user will be used as a matrix [6x1] data to simulate the neural network. can someone help me...
below is my coding for simulate my neural network in pushbutton callback function... i want to use all the value as a 'data'...
load net
a = sim(net,data);
i have done some reading but cannot understand the solution given..

답변 (1개)

Walter Roberson
Walter Roberson 2015년 6월 14일
valstrs = get([handles.editbox1, handles.editbox2, handles.editbox3, handles.editbox4, handles.editbox5, handles.editbox6], 'String');
valn = str2double(valstrs);
a = sim(net, valn(:));

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by