Basic Question about the function ztrans

2 ビュー (過去 30 日間)
Nicholas
Nicholas 2016 年 12 月 20 日
コメント済み: Nicholas 2016 年 12 月 20 日
Hi,
I have a vector which represents a signal sampled at 250Hz.
I would like to perform a z transformation on this vector, although I haven't had success thus far.
This is what I have tried:
%%Band Pass Filtering
ECG = load('Testm.mat');
d = designfilt('bandpassiir','FilterOrder',10, ...
'PassbandFrequency1',0.5,'PassbandFrequency2',50, ...
'PassbandRipple',3, ...
'StopbandAttenuation1',40,'StopbandAttenuation2',40, ...
'SampleRate',250);
FD = filter(d,ECG.val(1,:));
fvtool(d,'Fs', 250)
%%Zero Padding
B = padarray(FD, [0 4])
%%Unilateral Z transformation
syms k x
f = B(k)
ztrans(f,k,x)
Any suggestions would be helpful
thanks
Nic

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 12 月 20 日
syms k x
f = B(k)
However, indexing an array by a symbolic variable is not permitted.
ztrans is to be applied to a function, not to a vector of values.
Perhaps the code shown at https://www.youtube.com/watch?v=rLcKKMcfx9o is of interest.
  1 件のコメント
Nicholas
Nicholas 2016 年 12 月 20 日
Thanks very much Walter - I'll review the video.
Dr. Nic

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDiscrete Multiresolution Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by