Fazer download em pdf ou txt
Fazer download em pdf ou txt
Você está na página 1de 2

Funes Utilizadas

Contents Funes Utilizadas Funes Utilizadas


f u n c t i o nd=U s a m p ( n ) d = ( n = = 0 ) ;

f u n c t i o nd=U s a m p ( n ) d = ( n = = 0 ) ;

f u n c t i o n y=r e c t ( t ,t 1 ) % U S T E P ( t ,t 0 )u n i ts t e pa tt 0 . [ m ,n ]=s i z e ( t ) ; y=o n e s ( m ,n ) ; %i n i t i a l i z eya r r a yo fp o i n t s f o rk=1 :l e n g t h ( t ) i ft ( k )<t 1 y ( k )=0 ; e n d i ft ( k )>t 1 y ( k )=0 ; e n d e n d

f u n c t i o n s i n ( b * a + c ) ;

y=D t s i n ( a ,b , c )

f u n c t i o n[ y ,n y ]=D e l a y ( x ,n x ,n 0 ) %D e l a y x n x n f u n c t i o nt oe m u l a t et h ei d e a ld e l a ys y s t e m %f o rad e l a yo fn N=m a x ( s i z e ( n x ) ) ; % d e t e r m i n et h es i z eo fn x i fn 0 > = 0 %c h e c kf o rp o s i t i v ed e l a y n y =[ n x ( 1 : N 1 )n x ( N ) : n x ( N ) + n 0 ] ; %a u g m e n tt h ei n d e c e sv e c t o rf o rp o s d e l a y e l s e i fn 0< 0 n y=[ n x ( 1 ) + n 0 : n x ( 1 )n x ( 2 : N ) ] ; %a u g m e n tt h ei n d e c e s v e c t o rf o rn e g d e l a y e n d ; M=m a x ( s i z e ( n y ) ) ; %d e t e r m i n et h e s i z eo fn y y=z e r o s ( s i z e ( n y ) ) ; %u n d e f i n e dv a l u e so fxw i l lb es e tt o i fn 0>0 y( n 0 + 1 : M )=x ; e l s e y ( 1 : M + n 0 )=x ; e n d f u n c t i o n y=C e x p ( a ,b ) y=e x p ( s q r t ( 1 ) * a * b ) ;

I n p u ta r g u m e n t" n "i su n d e f i n e d . E r r o ri n= = >F u n c o e sa t6 d = ( n = = 0 ) ;

Published with MATLAB 7.12

Você também pode gostar