《DSP using MATLAB》Problem 4.12

代码:

function [As, Ac, r, v0] = invCCPP(b0, b1, a1, a2)
	% Determine the signal parameters Ac, As, r, v0 in terms of
	%   the rational function parameters b0, b1, a1 and a2.
	% ----------------------------------------------------
	% function [As, Ac, r, v0] = invCCPP(b0, b1, a1, a2)
	%
	%  b0, b1 = numerator coefficient
	%  a1, a2 = denominator coefficient
	%
	%  x(n)=Ac*(r^n)*cos(pi*v0*n)*u(n) + As*(r^n)*sin(pi*v0*n)*u(n)
	%
Ac = b0;
 r = sqrt(a2);
v0 = acos(-a1/(2*r));
As = (b1-a1*b0/2) / (r*sin(v0*pi));

  

原文地址:https://www.cnblogs.com/ky027wh-sx/p/8457424.html

时间: 2024-11-09 02:10:56

《DSP using MATLAB》Problem 4.12的相关文章

《DSP using MATLAB》Problem 6.12

代码: %% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %% Output Info about this m-file fprintf('\n***********************************************************\n'); fprintf(' <DSP using MATLAB> Problem 6.12 \n\n'); ba

《DSP using MATLAB》Problem 8.12

代码: %% ------------------------------------------------------------------------ %% Output Info about this m-file fprintf('\n***********************************************************\n'); fprintf(' <DSP using MATLAB> Problem 8.12 \n\n'); banner();

《DSP using MATLAB》Problem 3.12

原文地址:https://www.cnblogs.com/ky027wh-sx/p/8242125.html

《DSP using MATLAB》Problem 4.13

代码: %% ---------------------------------------------------------------------------- %% Output Info about this m-file fprintf('\n***********************************************************\n'); fprintf(' <DSP using MATLAB> Problem 4.13 \n\n'); banner

《DSP using MATLAB》Problem 5.14

说明:这两个小题的数学证明过程都不会,欢迎博友赐教. 直接上代码: %% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %% Output Info about this m-file fprintf('\n***********************************************************\n'); fprintf(' <DSP using MA

《DSP using MATLAB》Problem 5.21

证明: 代码: %% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %% Output Info about this m-file fprintf('\n***********************************************************\n'); fprintf(' <DSP using MATLAB> Problem 5.2

《DSP using MATLAB》 Problem 2.3

本题主要是显示周期序列的. 1.代码: %% ------------------------------------------------------------------------ %% Output Info about this m-file fprintf('\n***********************************************************\n'); fprintf(' <DSP using MATLAB> Problem 2.3.1 \

《DSP using MATLAB》Problem 2.5

2.代码: %% ------------------------------------------------------------------------ %% Output Info about this m-file fprintf('\n***********************************************************\n'); fprintf(' <DSP using MATLAB> Problem 2.5.2 \n\n'); time_st

《DSP using MATLAB》Problem 2.6

1.代码 %% ------------------------------------------------------------------------ %% Output Info about this m-file fprintf('\n***********************************************************\n'); fprintf(' <DSP using MATLAB> Problem 2.6.1 \n\n'); [v, d] =