how to create GUIDE table

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);
power required.JPG

Answers (0)

Categories

Asked:

on 4 Dec 2019

Community Treasure Hunt

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

Start Hunting!