i have a function. The function name zernikeuji3.The function is called form pushbutton2 and get the parameters from popupmenu1. So,when i call the function, it is generate some value. i want to show the result of the function in a table 1 like in image that i attach. But, why the result is show in new table ( table 2 like in image that i attach ).
here my code
function pushbutton2_Callback(hObject, eventdata, handles)% hObject handle to pushbutton2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global image1contents=get(handles.popupmenu1,'String');popupmenu1_value=contents{get(handles.popupmenu1,'Value')};switch popupmenu1_value case '0' a=cast(zernikeuji3(image1,0),'single') table_as_cell = num2cell(a); set(uitable, 'Data', table_as_cell); case '1' a=cast(zernikeuji3(image1,1),'single') table_as_cell = num2cell(a); set(uitable, 'Data', table_as_cell);end
how to make it ? need help. Thanks
Best Answer