how to correct errors in Input data sizes do not match net.inputs {1} .size. when going to do data testing?

3 visualizaciones (últimos 30 días)

this is my code

function varargout = formpengujian(varargin) % FORMPENGUJIAN MATLAB code for formpengujian.fig % FORMPENGUJIAN, by itself, creates a new FORMPENGUJIAN or raises the existing % singleton*. % % H = FORMPENGUJIAN returns the handle to a new FORMPENGUJIAN or the handle to % the existing singleton*. % % FORMPENGUJIAN('CALLBACK',hObject,eventData,handles,...) calls the local % function named CALLBACK in FORMPENGUJIAN.M with the given input arguments. % % FORMPENGUJIAN('Property','Value',...) creates a new FORMPENGUJIAN or raises the % existing singleton*. Starting from the left, property value pairs are % applied to the GUI before formpengujian_OpeningFcn gets called. An % unrecognized property name or invalid value makes property application % stop. All inputs are passed to formpengujian_OpeningFcn via varargin. % % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one % instance to run (singleton)". % % See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help formpengujian

% Last Modified by GUIDE v2.5 21-Jul-2018 09:13:07

% Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @formpengujian_OpeningFcn, ... 'gui_OutputFcn', @formpengujian_OutputFcn, ... 'gui_LayoutFcn', [] , ... 'gui_Callback', []); if nargin && ischar(varargin{1}) gui_State.gui_Callback = str2func(varargin{1}); end

if nargout [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); else gui_mainfcn(gui_State, varargin{:}); end % End initialization code - DO NOT EDIT

% --- Executes just before formpengujian is made visible. function formpengujian_OpeningFcn(hObject, eventdata, handles, varargin) % This function has no output args, see OutputFcn. % hObject handle to figure % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % varargin command line arguments to formpengujian (see VARARGIN)

% Choose default command line output for formpengujian handles.output = hObject;

% Update handles structure guidata(hObject, handles);

% UIWAIT makes formpengujian wait for user response (see UIRESUME) % uiwait(handles.figure1);

% --- Outputs from this function are returned to the command line. function varargout = formpengujian_OutputFcn(hObject, eventdata, handles) % varargout cell array for returning output args (see VARARGOUT); % hObject handle to figure % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure varargout{1} = handles.output;

% --- Executes on selection change in popupmenu1. function popupmenu1_Callback(hObject, eventdata, handles) % hObject handle to popupmenu1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: contents = cellstr(get(hObject,'String')) returns popupmenu1 contents as cell array % contents{get(hObject,'Value')} returns selected item from popupmenu1 v=get(handles.popupmenu1,'Value'); switch v case 1 set(handles.suara,'string','0'); case 2 set(handles.suara,'string','1'); end

% --- Executes during object creation, after setting all properties. function popupmenu1_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: popupmenu controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

% --- Executes on selection change in popupmenu2. function popupmenu2_Callback(hObject, eventdata, handles) % hObject handle to popupmenu2 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: contents = cellstr(get(hObject,'String')) returns popupmenu2 contents as cell array % contents{get(hObject,'Value')} returns selected item from popupmenu2 v=get(handles.popupmenu2,'Value'); switch v case 1 set(handles.gambar,'string','0'); case 2 set(handles.gambar,'string','1'); end

% --- Executes during object creation, after setting all properties. function popupmenu2_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu2 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: popupmenu controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

% --- Executes on selection change in popupmenu3. function popupmenu3_Callback(hObject, eventdata, handles) % hObject handle to popupmenu3 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: contents = cellstr(get(hObject,'String')) returns popupmenu3 contents as cell array % contents{get(hObject,'Value')} returns selected item from popupmenu3 v=get(handles.popupmenu3,'Value'); switch v case 1 set(handles.membedakan,'string','0'); case 2 set(handles.membedakan,'string','1'); end

% --- Executes during object creation, after setting all properties. function popupmenu3_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu3 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: popupmenu controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

% --- Executes on selection change in popupmenu4. function popupmenu4_Callback(hObject, eventdata, handles) % hObject handle to popupmenu4 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: contents = cellstr(get(hObject,'String')) returns popupmenu4 contents as cell array % contents{get(hObject,'Value')} returns selected item from popupmenu4 v=get(handles.popupmenu4,'Value'); switch v case 1 set(handles.kegiatan,'string','0'); case 2 set(handles.kegiatan,'string','1'); end

% --- Executes during object creation, after setting all properties. function popupmenu4_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu4 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: popupmenu controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

% --- Executes on selection change in popupmenu5. function popupmenu5_Callback(hObject, eventdata, handles) % hObject handle to popupmenu5 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: contents = cellstr(get(hObject,'String')) returns popupmenu5 contents as cell array % contents{get(hObject,'Value')} returns selected item from popupmenu5 v=get(handles.popupmenu5,'Value'); switch v case 1 set(handles.komunikasi,'string','0'); case 2 set(handles.komunikasi,'string','1'); end

% --- Executes during object creation, after setting all properties. function popupmenu5_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu5 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: popupmenu controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

% --- Executes on selection change in popupmenu6. function popupmenu6_Callback(hObject, eventdata, handles) % hObject handle to popupmenu6 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: contents = cellstr(get(hObject,'String')) returns popupmenu6 contents as cell array % contents{get(hObject,'Value')} returns selected item from popupmenu6 v=get(handles.popupmenu6,'Value'); switch v case 1 set(handles.bahasa,'string','0'); case 2 set(handles.bahasa,'string','1'); end

% --- Executes during object creation, after setting all properties. function popupmenu6_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu6 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: popupmenu controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

% --- Executes on selection change in popupmenu7. function popupmenu7_Callback(hObject, eventdata, handles) % hObject handle to popupmenu7 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: contents = cellstr(get(hObject,'String')) returns popupmenu7 contents as cell array % contents{get(hObject,'Value')} returns selected item from popupmenu7 v=get(handles.popupmenu7,'Value'); switch v case 1 set(handles.emosi,'string','0'); case 2 set(handles.emosi,'string','1'); end

% --- Executes during object creation, after setting all properties. function popupmenu7_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu7 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: popupmenu controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

% --- Executes on selection change in popupmenu8. function popupmenu8_Callback(hObject, eventdata, handles) % hObject handle to popupmenu8 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: contents = cellstr(get(hObject,'String')) returns popupmenu8 contents as cell array % contents{get(hObject,'Value')} returns selected item from popupmenu8 v=get(handles.popupmenu8,'Value'); switch v case 1 set(handles.bermain,'string','0'); case 2 set(handles.bermain,'string','1'); end

% --- Executes during object creation, after setting all properties. function popupmenu8_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu8 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: popupmenu controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

% --- Executes on selection change in popupmenu9. function popupmenu9_Callback(hObject, eventdata, handles) % hObject handle to popupmenu9 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: contents = cellstr(get(hObject,'String')) returns popupmenu9 contents as cell array % contents{get(hObject,'Value')} returns selected item from popupmenu9 v=get(handles.popupmenu9,'Value'); switch v case 1 set(handles.berempati,'string','0'); case 2 set(handles.berempati,'string','1'); end

% --- Executes during object creation, after setting all properties. function popupmenu9_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu9 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: popupmenu controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

% --- Executes on selection change in popupmenu10. function popupmenu10_Callback(hObject, eventdata, handles) % hObject handle to popupmenu10 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: contents = cellstr(get(hObject,'String')) returns popupmenu10 contents as cell array % contents{get(hObject,'Value')} returns selected item from popupmenu10 v=get(handles.popupmenu10,'Value'); switch v case 1 set(handles.bergaul,'string','0'); case 2 set(handles.bergaul,'string','1'); end

% --- Executes during object creation, after setting all properties. function popupmenu10_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu10 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: popupmenu controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

% --- Executes on selection change in popupmenu11. function popupmenu11_Callback(hObject, eventdata, handles) % hObject handle to popupmenu11 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: contents = cellstr(get(hObject,'String')) returns popupmenu11 contents as cell array % contents{get(hObject,'Value')} returns selected item from popupmenu11

v=get(handles.popupmenu11,'Value'); switch v case 1 set(handles.umur,'string','0'); case 2 set(handles.umur,'string','0,14'); case 3 set(handles.umur,'string','0,28'); case 4 set(handles.umur,'string','0,42'); case 5 set(handles.umur,'string','0,57'); case 6 set(handles.umur,'string','0,71'); case 7 set(handles.umur,'string','0,85'); case 8 set(handles.umur,'string','1'); end % --- Executes during object creation, after setting all properties. function popupmenu11_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu11 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: popupmenu controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

% --- Executes on selection change in popupmenu12. function popupmenu12_Callback(hObject, eventdata, handles) % hObject handle to popupmenu12 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: contents = cellstr(get(hObject,'String')) returns popupmenu12 contents as cell array % contents{get(hObject,'Value')} returns selected item from popupmenu12 v=get(handles.popupmenu12,'Value'); switch v case 1 set(handles.jk,'string','0'); case 2 set(handles.jk,'string','1'); end

% --- Executes during object creation, after setting all properties. function popupmenu12_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu12 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: popupmenu controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

% --- Executes on selection change in popupmenu13. function popupmenu13_Callback(hObject, eventdata, handles) % hObject handle to popupmenu13 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: contents = cellstr(get(hObject,'String')) returns popupmenu13 contents as cell array % contents{get(hObject,'Value')} returns selected item from popupmenu13 v=get(handles.popupmenu13,'Value'); switch v case 1 set(handles.penyakitkuning,'string','0'); case 2 set(handles.penyakitkuning,'string','1'); end % --- Executes during object creation, after setting all properties. function popupmenu13_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu13 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: popupmenu controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function suara_Callback(hObject, eventdata, handles) % hObject handle to suara (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of suara as text % str2double(get(hObject,'String')) returns contents of suara as a double

% --- Executes during object creation, after setting all properties. function suara_CreateFcn(hObject, eventdata, handles) % hObject handle to suara (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function gambar_Callback(hObject, eventdata, handles) % hObject handle to gambar (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of gambar as text % str2double(get(hObject,'String')) returns contents of gambar as a double

% --- Executes during object creation, after setting all properties. function gambar_CreateFcn(hObject, eventdata, handles) % hObject handle to gambar (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function membedakan_Callback(hObject, eventdata, handles) % hObject handle to membedakan (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of membedakan as text % str2double(get(hObject,'String')) returns contents of membedakan as a double

% --- Executes during object creation, after setting all properties. function membedakan_CreateFcn(hObject, eventdata, handles) % hObject handle to membedakan (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function kegiatan_Callback(hObject, eventdata, handles) % hObject handle to kegiatan (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of kegiatan as text % str2double(get(hObject,'String')) returns contents of kegiatan as a double

% --- Executes during object creation, after setting all properties. function kegiatan_CreateFcn(hObject, eventdata, handles) % hObject handle to kegiatan (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function komunikasi_Callback(hObject, eventdata, handles) % hObject handle to komunikasi (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of komunikasi as text % str2double(get(hObject,'String')) returns contents of komunikasi as a double

% --- Executes during object creation, after setting all properties. function komunikasi_CreateFcn(hObject, eventdata, handles) % hObject handle to komunikasi (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function bahasa_Callback(hObject, eventdata, handles) % hObject handle to bahasa (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of bahasa as text % str2double(get(hObject,'String')) returns contents of bahasa as a double

% --- Executes during object creation, after setting all properties. function bahasa_CreateFcn(hObject, eventdata, handles) % hObject handle to bahasa (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function emosi_Callback(hObject, eventdata, handles) % hObject handle to emosi (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of emosi as text % str2double(get(hObject,'String')) returns contents of emosi as a double

% --- Executes during object creation, after setting all properties. function emosi_CreateFcn(hObject, eventdata, handles) % hObject handle to emosi (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function bermain_Callback(hObject, eventdata, handles) % hObject handle to bermain (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of bermain as text % str2double(get(hObject,'String')) returns contents of bermain as a double

% --- Executes during object creation, after setting all properties. function bermain_CreateFcn(hObject, eventdata, handles) % hObject handle to bermain (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function berempati_Callback(hObject, eventdata, handles) % hObject handle to berempati (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of berempati as text % str2double(get(hObject,'String')) returns contents of berempati as a double

% --- Executes during object creation, after setting all properties. function berempati_CreateFcn(hObject, eventdata, handles) % hObject handle to berempati (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function bergaul_Callback(hObject, eventdata, handles) % hObject handle to bergaul (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of bergaul as text % str2double(get(hObject,'String')) returns contents of bergaul as a double

% --- Executes during object creation, after setting all properties. function bergaul_CreateFcn(hObject, eventdata, handles) % hObject handle to bergaul (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function umur_Callback(hObject, eventdata, handles) % hObject handle to umur (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of umur as text % str2double(get(hObject,'String')) returns contents of umur as a double

% --- Executes during object creation, after setting all properties. function umur_CreateFcn(hObject, eventdata, handles) % hObject handle to umur (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function jk_Callback(hObject, eventdata, handles) % hObject handle to jk (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of jk as text % str2double(get(hObject,'String')) returns contents of jk as a double

% --- Executes during object creation, after setting all properties. function jk_CreateFcn(hObject, eventdata, handles) % hObject handle to jk (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function penyakitkuning_Callback(hObject, eventdata, handles) % hObject handle to penyakitkuning (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of penyakitkuning as text % str2double(get(hObject,'String')) returns contents of penyakitkuning as a double

% --- Executes during object creation, after setting all properties. function penyakitkuning_CreateFcn(hObject, eventdata, handles) % hObject handle to penyakitkuning (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function node1_Callback(hObject, eventdata, handles) % hObject handle to node1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of node1 as text % str2double(get(hObject,'String')) returns contents of node1 as a double

% --- Executes during object creation, after setting all properties. function node1_CreateFcn(hObject, eventdata, handles) % hObject handle to node1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function hasilklasifikasi_Callback(hObject, eventdata, handles) % hObject handle to hasilklasifikasi (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of hasilklasifikasi as text % str2double(get(hObject,'String')) returns contents of hasilklasifikasi as a double

% --- Executes during object creation, after setting all properties. function hasilklasifikasi_CreateFcn(hObject, eventdata, handles) % hObject handle to hasilklasifikasi (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

% --- Executes on button press in execute. function execute_Callback(hObject, eventdata, handles)

load bobotjst.mat;

a=str2num(get(handles.suara,'String')); b=str2num(get(handles.gambar,'String')); c=str2num(get(handles.membedakan,'String')); d=str2num(get(handles.kegiatan,'String')); e=str2num(get(handles.komunikasi,'String')); f=str2num(get(handles.bahasa,'String')); g=str2num(get(handles.emosi,'String')); h=str2num(get(handles.bermain,'String')); i=str2num(get(handles.berempati,'String')); j=str2num(get(handles.bergaul,'String')); k=str2num(get(handles.umur,'String')); l=str2num(get(handles.jk,'String')); m=str2num(get(handles.penyakitkuning,'String'));

pola=[a, b, c, d, e, f, g, h, i, j, k, l, m];

y=sim(net,pola'); set(handles.node,'String',y(1)');

[baris,kolom]=find(y>=0.6); [H,W]=size(y); y2=zeros(H,W); for i=1:length(y) y2(baris,kolom)=1; end if y2'==[1] set(handles.deteksi,'string','ASD'); else set(handles.deteksi,'string','NON-ASD'); end guidata(hObject, handles);

% hObject handle to execute (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% --- Executes on button press in reset. function reset_Callback(hObject, eventdata, handles) set(handles.suara,'String',''); set(handles.gambar,'String',''); set(handles.membedakan,'String',''); set(handles.kegiatan,'String',''); set(handles.komunikasi,'String',''); set(handles.bahasa,'String',''); set(handles.emosi,'String',''); set(handles.bermain,'String',''); set(handles.berempati,'String',''); set(handles.bergaul,'String',''); set(handles.umur,'String',''); set(handles.jk,'String',''); set(handles.penyakitkuning,'String',''); set(handles.node,'String',''); set(handles.hasilklasifikasi,'String','Hasil Klasifikasi...'); % hObject handle to reset (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% --- Executes on button press in beranda2. function beranda2_Callback(hObject, eventdata, handles)

close haldepan

% hObject handle to beranda2 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

please help me, thanks before

Respuestas (1)

Ira Miranti
Ira Miranti el 29 de Ag. de 2018
ok, this is my code, thank you so much

Categorías

Más información sobre Schedule Model Components en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by