06.08.2013 Views

内容简介作者简介 - 科学与工程计算系

内容简介作者简介 - 科学与工程计算系

内容简介作者简介 - 科学与工程计算系

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

图 10.1-1<br />

(2)<br />

h_text=uicontrol(h_fig,'style','text',...<br />

'unit','normalized','position',[0.67,0.73,0.25,0.14],...<br />

'horizontal','left','string',{'输入阻尼比系数','zeta ='});<br />

h_edit=uicontrol(h_fig,'style','edit',...<br />

'unit','normalized','position',[0.67,0.59,0.25,0.14],...<br />

'horizontal','left',...<br />

'callback',[...<br />

'z=str2num(get(gcbo,''string''));',...<br />

't=0:0.1:15;',...<br />

'for k=1:length(z);',...<br />

'y(:,k)=step(1,[1 2*z(k) 1],t);',...<br />

'plot(t,y(:,k));',...<br />

'if (length(z)>1) ,hold on,end,',...<br />

'end;',...<br />

'hold off,']);<br />

图 10.1-2<br />

(3)<br />

h_push1=uicontrol(h_fig,'style','push',...<br />

'unit','normalized','position',[0.67,0.37,0.12,0.15],...<br />

'string','grid on','callback','grid on');<br />

h_push2=uicontrol(h_fig,'style','push',...<br />

2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!