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!