how to find z transform of a random sequence?

3 visualizaciones (últimos 30 días)
vikash
vikash el 23 de Sept. de 2013
hello, i wish to find out z transform expression of a huge sequence say 500 elements as it is required for some modelling in my project. if we have few elements, say [1 2 6 1 5], we can write the form as 1+2/z+6/z^2+1/z^3+5/z^4. But how to do this in case of large sequences, sure i don't want to manually write like the above one for all the elements. Please help!!!!!!
thanks in advance

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 23 de Sept. de 2013
Editada: Azzi Abdelmalek el 23 de Sept. de 2013
h=randi(10,1,500);
syms z zz
zz=1;
H=0;
for k=1:numel(h)
zz=zz*z^-1;
H=H+h(k)*zz;
end
%or maybe
h=randi(20,1,500); % Example
H=tf(0,1,1);
D=1;
for k=1:numel(h)
D=conv(D,[1 0]);
H=H+tf(h(k),D,1);
end

Más respuestas (0)

Categorías

Más información sobre Mathematics en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by