point = get(app.UIAxes, 'CurrentPoint');
x1 = point(1, 1);
y1 = point(1, 1);
R=str2double(app.REditField.Value) ;
t = linspace(0, 2*pi, 100);
x1 = R * cos(t) + x1;
y1 = R * sin(t) + y1;
plot(app.UIAxes, x1,y1, 'r', 'LineWidth', 1);
legend(app.UIAxes,{'R'},'Location','Best');
MATLAB 画圆
最新推荐文章于 2024-02-04 23:50:17 发布