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!