⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 drawarrw.m

📁 AFD - Advanced Filter Design using MATLABMiroslav D. Lutovac, Dejan V. Tosicversion 1.00 released 15
💻 M
字号:
function drarrw = drawarrw(a,b,t,p,s,F)

% drawarrw.m  Draw Arrow (Current)
% 1:58  24/2/99
%            Album of Analog Filter Realizations
%
%   Authors: Dejan V. Tosic, Miroslav D. Lutovac, 1999.02.21
%                 tosic@telekom.etf.bg.ac.yu
%                 lutovac@galeb.etf.bg.ac.yu
%
%   Copyright (c) 1999 by Tosic & Lutovac
%   $Revision: 1.0 $  $Date: 1999/02/21 02:17:42 $
%
%   References:
%        Miroslav D. Lutovac, Dejan V. Tosic, Brian L. Evans
%           Advanced Filter Design for Signal Processing
%                   Using MATLAB and Mathematica
%

if p == 0
 x2 = a + s*[0, 0.1 0]; y2 = b + s*[0.05, 0, -0.05]; line(x2,y2)
  text(a+s*0.05,b+s*0.1,t,'FontName','Times','FontSize',F,...
    'HorizontalAlignment','center','VerticalAlignment','bottom')
elseif p == 1
 y2 = b + s*[0, 0.1 0]; x2 = a + s*[0.05, 0, -0.05]; line(x2,y2)
  text(a+s*0.1,b+s*0.05,t,'FontName','Times','FontSize',F,...
    'HorizontalAlignment','left','VerticalAlignment','middle')
elseif p == 2
 x2 = a + s*[0, -0.1 0]; y2 = b + s*[0.05, 0, -0.05]; line(x2,y2)
  text(a-s*0.05,b+s*0.1,t,'FontName','Times','FontSize',F,...
    'HorizontalAlignment','center','VerticalAlignment','bottom')
elseif p == 3
 y2 = b + s*[0, -0.1 0]; x2 = a + s*[0.05, 0, -0.05]; line(x2,y2)
  text(a+s*0.1,b-s*0.05,t,'FontName','Times','FontSize',F,...
    'HorizontalAlignment','left','VerticalAlignment','middle')
elseif p == 4
 x2 = a + s*[0, 0.1 0]; y2 = b + s*[0.05, 0, -0.05]; line(x2,y2)
  text(a+s*0.05,b-s*0.1,t,'FontName','Times','FontSize',F,...
    'HorizontalAlignment','center','VerticalAlignment','top')
elseif p == 5
 y2 = b + s*[0, 0.1 0]; x2 = a + s*[0.05, 0, -0.05]; line(x2,y2)
  text(a-s*0.1,b+s*0.05,t,'FontName','Times','FontSize',F,...
    'HorizontalAlignment','right','VerticalAlignment','middle')
elseif p == 6
 x2 = a + s*[0, -0.1 0]; y2 = b + s*[0.05, 0, -0.05]; line(x2,y2)
  text(a-s*0.05,b-s*0.1,t,'FontName','Times','FontSize',F,...
    'HorizontalAlignment','center','VerticalAlignment','top')
else
 y2 = b + s*[0, -0.1 0]; x2 = a + s*[0.05, 0, -0.05]; line(x2,y2)
  text(a-s*0.1,b-s*0.05,t,'FontName','Times','FontSize',F,...
    'HorizontalAlignment','right','VerticalAlignment','middle')
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -