matlab中一个源代码,帮我解释一下这些代码每一句的意思呗,急用
clfresetH=axes('unit','normalized','position',[0,0,1,1],'visible','off');set(gcf,'cur...
clf resetH=axes('unit','normalized','position',[0,0,1,1],'visible','off');set(gcf,'currentaxes',H);str='\fontname{隶书}归一化二阶系统的阶跃响应曲线';text(0.12,0.93,str,'fontsize',13);h_fig=get(H,'parent');set(h_fig,'unit','normalized','position',[0.1,0.2,0.7,0.4]);h_axes=axes('parent',h_fig,...'unit','normalized','position',[0.1,0.15,0.55,0.7],...'xlim',[0 15],'ylim',[0 1.8],'fontsize',8);h_text=uicontrol(h_fig,'style','text',...'unit','normalized','position',[0.67,0.73,0.25,0.14],...'horizontal','left','string',{'输入阻尼比系数','zeta ='});h_edit=uicontrol(h_fig,'style','edit',...'unit','normalized','position',[0.67,0.59,0.25,0.14],...'horizontal','left',...'callback',[...'z=str2num(get(gcbo,''string''));',...'t=0:0.1:15;',...'for k=1:length(z);',...'s2=tf(1,[1 2*z(k) 1]); ',...'y(:,k)=step(s2,t);',...'plot(t,y(:,k));',...'if (length(z)>1) ,hold on,end,',...'end;',...'hold off,']);h_push1=uicontrol(h_fig,'style','push',... 'unit','normalized','position',[0.67,0.37,0.12,0.15],...'string','grid on','callback','grid on');h_push2=uicontrol(h_fig,'style','push',...'unit','normalized','position',[0.67,0.15,0.12,0.15],...'string','grid off','callback','grid off');
展开
1个回答
展开全部
clf reset%清除图形内容并重置图形特性
H=axes('unit','normalized','position',[0,0,1,1],'visible','off');%生成坐标轴图柄H
set(gcf,'currentaxes',H);%设置当前图形坐标轴
str='\fontname{隶书}归一化二阶系统的阶跃响应曲线';%生成一个隶书字串,用于后面命名
text(0.12,0.93,str,'fontsize',13);%在图中写上面的字串
h_fig=get(H,'parent');%获得H的特性并生成图h
set(h_fig,'unit','normalized','position',[0.1,0.2,0.7,0.4]);%设置图形h的位置及大小
h_axes=axes('parent',h_fig,...
'unit','normalized','position',[0.1,0.15,0.55,0.7],...
'xlim',[0 15],'ylim',[0 1.8],'fontsize',8);%生成图形h的坐标轴
h_text=uicontrol(h_fig,'style','text',...
'unit','normalized','position',[0.67,0.73,0.25,0.14],...
'horizontal','left','string',{'输入阻尼比系数','zeta ='});%在图h中生成一个文本控件,要求输入zeta值
h_edit=uicontrol(h_fig,'style','edit',...
'unit','normalized','position',[0.67,0.59,0.25,0.14],...
'horizontal','left',...
'callback',[...
'z=str2num(get(gcbo,''string''));',...
't=0:0.1:15;',...
'for k=1:length(z);',...
's2=tf(1,[1 2*z(k) 1]); ',...
'y(:,k)=step(s2,t);',...
'plot(t,y(:,k));',...
'if (length(z)>1) ,hold on,end,',...
'end;',...
'hold off,']);%生成一个编辑控件,根据zeta值画图
h_push1=uicontrol(h_fig,'style','push',...
'unit','normalized','position',[0.67,0.37,0.12,0.15],...
'string','grid on','callback','grid on');%生成一个按钮控件,用于在图中画网格
h_push2=uicontrol(h_fig,'style','push',...
'unit','normalized','position',[0.67,0.15,0.12,0.15],...
'string','grid off','callback','grid off');%生成一个按钮控件,用于消除图中的网格
H=axes('unit','normalized','position',[0,0,1,1],'visible','off');%生成坐标轴图柄H
set(gcf,'currentaxes',H);%设置当前图形坐标轴
str='\fontname{隶书}归一化二阶系统的阶跃响应曲线';%生成一个隶书字串,用于后面命名
text(0.12,0.93,str,'fontsize',13);%在图中写上面的字串
h_fig=get(H,'parent');%获得H的特性并生成图h
set(h_fig,'unit','normalized','position',[0.1,0.2,0.7,0.4]);%设置图形h的位置及大小
h_axes=axes('parent',h_fig,...
'unit','normalized','position',[0.1,0.15,0.55,0.7],...
'xlim',[0 15],'ylim',[0 1.8],'fontsize',8);%生成图形h的坐标轴
h_text=uicontrol(h_fig,'style','text',...
'unit','normalized','position',[0.67,0.73,0.25,0.14],...
'horizontal','left','string',{'输入阻尼比系数','zeta ='});%在图h中生成一个文本控件,要求输入zeta值
h_edit=uicontrol(h_fig,'style','edit',...
'unit','normalized','position',[0.67,0.59,0.25,0.14],...
'horizontal','left',...
'callback',[...
'z=str2num(get(gcbo,''string''));',...
't=0:0.1:15;',...
'for k=1:length(z);',...
's2=tf(1,[1 2*z(k) 1]); ',...
'y(:,k)=step(s2,t);',...
'plot(t,y(:,k));',...
'if (length(z)>1) ,hold on,end,',...
'end;',...
'hold off,']);%生成一个编辑控件,根据zeta值画图
h_push1=uicontrol(h_fig,'style','push',...
'unit','normalized','position',[0.67,0.37,0.12,0.15],...
'string','grid on','callback','grid on');%生成一个按钮控件,用于在图中画网格
h_push2=uicontrol(h_fig,'style','push',...
'unit','normalized','position',[0.67,0.15,0.12,0.15],...
'string','grid off','callback','grid off');%生成一个按钮控件,用于消除图中的网格
TableDI
2024-07-18 广告
2024-07-18 广告
VLOOKUP是Excel中用于垂直查找的函数,其基本用法包括四个参数:1. 查找值:即在数据表首列中需要搜索的值。2. 数据表:包含查找值的单元格区域或数组。3. 返回值所在列数:指定返回查询区域中第几列的值。4. 查找方式:选择精确匹配...
点击进入详情页
本回答由TableDI提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询