how to create GUIDE table
Show older comments
How can I add new row based on the value from velocity, Thrust required, and both calculated by pushbutton "Fill table"?, below is the code that I used, please help me! thanks in advance
%-- Executes on button press in Table.
function Table_Callback(hObject, eventdata, handles)
global p
Velocitydata = get(handles.Velocity,'string');
ThrustRequireddata = get(handles.thrust_required,'string');
Powerrequired1data = get(handles.power_required_ftlbs,'string');
Powerrequireddata = get(handles.power_required_hp,'string');
p.Mydata = [];
p.Mydata = [p.Mydata; [{Velocitydata} {ThrustRequireddata} {Powerrequired1data} {Powerrequireddata}]];
set(handles.Tablefield, 'data',p.Mydata)
handles.output = hObject;
guidata(hObject, handles);

Answers (0)
Categories
Find more on Structures in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!