MATLAB Answers

How to display the results of the system to the matlab gui that was made?

조회 수: 6(최근 30일)
syarifah cambami
syarifah cambami 24 Aug 2017
How to display the results of the system to the matlab gui that was made?, why the GUI can't display the result? Instead it displays in Command Window wich a place for dispaly debug?
with the script I use yet also displays the results of the system to the matlab gui.
function Pengujian_Callback(hObject, eventdata, handles)
% hObject handle to Pengujian (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
set(handles.kondisi,'string','PENGUJIAN')
set(handles.input,'string','U');
U = load ('datauji.dat')
X = U (1: 30, 1: 6);
Y = U (1: 30, 6)
ket = get(handles.input,'value');
DATA2 = [X];
n2 = size(DATA2,2)
Input_Uji = DATA2(1: 30, 1: n2-1)'
Target_Uji = DATA2(1: 30, n2)'
Umaks=max(Input_Uji)
Umaks2=Umaks'
Umaks3=max(Umaks2)
%Preprocessing
Unormal=Input_Uji/Umaks3
%Pengujian
load data_latih
load kolom_latih
load latih
load latih_120_80_2_Lr04_Mc07_traingdx.mat
yu=(sim(net,Unormal))
yu2=round(sim(net,Unormal))
E3=mse(Target_Uji'-yu')
%Evaluasi Output Jaringan
[m1,b1,r1]=postreg(yu,Target_Uji)
handles.edtmse.String = num2str(E3);
handles.edtm.String = num2str(m1);
handles.edtb.String = num2str(b1);
handles.edtr.String = num2str(r1);
k=[1: size(Unormal,2)];
%-------------------------------------------------------------------------

  댓글 수: 20

표시 이전 댓글 수: 17
syarifah cambami
syarifah cambami 1 Sep 2017
I have old version of matlab, but I can not send it to you because the size is bigger than the maximum size. So, how about your opinion? I nees your help.
Walter Roberson
Walter Roberson 1 Sep 2017
I have access to installers for MATLAB that old; the difficulty is with the licensing. Versions that old used the PLP licensing scheme, which permitted only 6 digit license numbers, but my license number is 7 digits. I would need to get Mathworks to create special keys for me.
I will have another look through my email archives to see whether my MATLAB 6.5 (R13) key would be enough to allow me to install NN for that release.
Walter Roberson
Walter Roberson 1 Sep 2017
Okay, I have managed to install R14 with NN. It turns out that I need to know what values you are entering for each of the input boxes.

Sign in to comment.

답변(1개)

Stalin Samuel
Stalin Samuel 1 Sep 2017
set(handles.edtm, 'String', num2str(E3));

  댓글 수: 4

표시 이전 댓글 수: 1
Stalin Samuel
Stalin Samuel 1 Sep 2017
I think the code attached is only the part and he may have definitions of fields in some other part of the code
Walter Roberson
Walter Roberson 1 Sep 2017
The user attached a .fig along with the .m; together they form a GUIDE created GUI. The field definitions are in the .fig
Stephen Cobeldick
Stephen Cobeldick 1 Sep 2017
syarifah cambami' "Answer" moved here:
Dear Stalin Samuel
Thank you have answered my question, Sir. I've tried it but still no change. As shown below :

Sign in to comment.


Translated by