how to give values to evalfis function
Show older comments
hi everyone.. i have developed a gui using matlab guide.here i need to load fis file and evaluate it to get the result.the values are taken from one textfield, 2 radio buttons and 3 dropdown. for example function of one popupmenu *function c_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
% --- Executes during object creation, after setting all properties. function c_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* when i click a pushbutton i should get the value in another window i have given code as *function pushbutton1_Callback(hObject, eventdata, handles)
rawdata1=readfis('NEW7.fis');
out=evalfis([a b c d e f], rawdata1);
hh=msgbox(out);
% hObject handle to pushbutton1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) * but im not getting the output. anykind of help will be appreciated.
Answers (0)
Categories
Find more on MATLAB in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!