COMPARATIVA ENTRE ENFPOQQUE MATRICIAL DE MATLAB VS ENFOQUE DE OBJETOS DE OTROS LENGUAJES DE PROGRAMACIÓN.
>> f=figure(1); >> set(f,'color',[1 1 1]) >> subplot(3,2,1), plot(s,'k','linewidth',1.5) >> B=[1 0 0 0 0 0 -2 0 0 0 0 0 1]; >> A=[1 -2 1]; >> s1=filter(B,A,s); >> figure(1),subplot(3,2,2),plot(s1,'k','linewidth',1.5) >> B=zeros(1,33); >> B(1)=1; B(33)=-1; >> A=[1 -1]; >> C=zeros(1,17); C(17)=1; >> s2=filter(C,1,s1)-filter(B,A,s1)/32; >> subplot(3,2,3),plot(s2,'k','linewidth',1.5) >> B=[0.2 0.1 0 -0.1 -0.2]; >> s3=filter(B,A,s2); >> subplot(3,2,4),plot(s3,'k','linewidth',1.5) >> N=30;delay=30; >> B=ones(1,N)/N; >> s4=s3.^2; >> s4=filter(B,1,s4); >> subplot(3,2,5),plot(s4,'k','linewidth',1.5) >> det=s4>(0.125*(max(s4)/2)); >> det(1:delay)=[]; >> subplot(3,2,6), plot(s,'k','linewidth',1.5) >> subplot(3,2,6), hold on,plot(max(s)*det,'k:') >> plot(s,'k','linewidth',1.5)