user creation plot in gui
显示 更早的评论
hey guys
im triyng to build a plot in gui witch get from user the x scale and jumps , y scale and jumps , style and color
for some reason im not sure if im getting it right , can someone give me some lead for it ?
thx!
the code ( only the sector when pusing the plot button)
% Button pushed function: plotButton
function plotButtonPushed(app, event)
Xdata= (get(app.XbeginEditField):get(app.XendEditField):get(app.XjumpEditField));
Ydata= (get(app.YbeginEditField):get(app.YendEditField):get(app.YjumpEditField)) ;
LineStyle= get(app.StyleEditField);
Color= get(app.ColorEditField);
plot(Xdata,Ydata,LineStyle,Color);
end
end

采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 App Building 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!