?? f_drawsys.asv
字號:
function f_drawsys (h,colors,fize)
%F_DRAWSAMP: Draw a block diagram for GUI module g_sample
%
% Usage: f_drawsys (h,colors,fsize);
%
% Inputs:
% h = axes handle
% colors = array of plotting colors
% fsize = font size
% Initialize
ylim = get(h,'Ylim');
xlim = get(h,'Xlim');
y0 = (ylim(2)-ylim(1))/2;
axes (h);
hold on
arrow = 0.1;
boxwidth = 0.2;
boxheight = 0.2;
circle = 0.02;
% Draw block diagram
f_circle (0.5-arrow-0.5*boxwidth,y0,circle,colors(1,:));
text (0.5-arrow-0.5*boxwidth-0.03,y0,'x','Color',colors(1,:),'HorizontalAlignment','center',...
'FontName','FixedWidthFontName','FontSize',fsize);
f_vector (0.5-arrow-0.5*boxwidth+0.5*circle,y0,1,0,arrow-0.5*circle,colors(1,:))
f_block (0.5-0.5*boxwidth,y0-0.5*boxheight,boxwidth,boxheight,colors(2,:))
text (0.5,y0,'H(z)','HorizontalAlignment','center')
f_line (0.5+0.5*boxwidth,y0,1,0,arrow-0.5*circle,colors(3,:))
f_circle (0.5+0.5*boxwidth+arrow,y0,circle,colors(3,:))
text (0.5+0.5*boxwidth+arrow+0.03,y0,'y','Color',colors(3,:),'HorizontalAlignment','center');
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -