...
I somehow uploaded the wrong picture this is the table I was talking about!
And where is the button you press?
How does the message handler for this button (button-click) look like? Could you show your exact code?
Did you debug your code?
This is a GUI. It is just a simple toggle button however I have a couple hundred lines of code.
Is the code wrong any other suggestions. I think the data might be in the wrong format in the array. When pulling from a workplace string.
I have screen share that might be easier to communicate and share the code?
Thanks let me know sir
% --- Executes on button press in pushbutton4.
function pushbutton4_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
set(handles.uitable5, 'Data', BatteryDischargeCalc)
The table is table 5 and I am trying to put the data from the array BatterydischargeCalc of 101X63 into it by using push button 4
% --- Executes on button press in pushbutton4.
function pushbutton4_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
BatteryDischargeCalc = assign(handles.uitable5,'data')
This the second thing I tried ...
And below is the error I am getting
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)SimpleOptimizedTabs2('pushbutton4_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
I appreciate your time and help I am new to posting on forums thank you
% --- Executes on button press in pushbutton4.
function pushbutton4_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
set(handles.uitable5, 'Data', BatteryDischargeCalc)
The table is table 5 and I am trying to put the data from the array BatterydischargeCalc of 101X63 into it by using push button 4
Code:
% --- Executes on button press in pushbutton4.
function pushbutton4_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
BatteryDischargeCalc = assign(handles.uitable5,'data')
This the second thing I tried ...
And below is the error I am getting
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)SimpleOptimizedTabs2('pushbutton4_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
I appreciate your time and help I am new to posting on forums thank you
...
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)SimpleOptimizedTabs2('pushbutton4_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
Yes....I have been searching google for quite some time.
I finally figured it out this morning.
Its changing the way the data is saved in the work space before passing it to the GUI using the Evalin Command
Code:
% --- Executes on button press in pushbutton4.
function pushbutton4_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
t=handles.uitable5
newdata = evalin('base', 'BatteryDischargeCalc')
set(t, 'Data', newdata)
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.