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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeStructures についてさらに検索

タグ

質問済み:

2019 年 12 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by