matlab中双引号 您所在的位置:网站首页 matlab字符串未正常终止 matlab中双引号

matlab中双引号

2024-07-16 18:54| 来源: 网络整理| 查看: 265

% % 创建一个隐藏的窗口

hFigure = figure('menubar','none','NumberTitle','off','position',...

[198 56 350 400],'name','控制小球的角速度','Visible','off');

% % 创建坐标轴

hAxes = axes('position',[0.25 0.45 0.5 0.5],'visible','off');

axis equal

% % 产生一个圆,作为小球运动的轨迹

t = 0 : 0.1 : 2 * pi + 0.1;

x = sin(t);

y = cos(t);

line(x,y,'LineWidth',2);

% % 设置 uicontrol 对象默认的背景颜色和字体大小和位置单位

set(0,'DefaultuicontrolBackgroundColor',get(hFigure,'color'));

set(0,'DefaultuicontrolFontsize',12);

set(0,'DefaultuicontrolUnits','points');

% % 创建小球

hBobble = line('xdata',0,'ydata',1,'marker','o','MarkerFaceColor',...

'r','ma



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有