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);

回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Structures についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!