필터 지우기
필터 지우기

zpk function is missing

조회 수: 10 (최근 30일)
Arash Kohli
Arash Kohli 2021년 3월 29일
댓글: taeho kim 2021년 9월 17일
I am using MATLAB R2020b, and Signal processing toolbox Ver. 8.5. The "zpk" function does not work. I have already tried following recommendation but no success:
restoredefaultpath
rehash toolboxcache
Please help me.
  댓글 수: 1
Fangjun Jiang
Fangjun Jiang 2021년 3월 31일
There is no zpk() function in Signal Processing Toolbox Ver 8.5. What is the error of zpk() in R2020b if you have the Control System Toolbox?

댓글을 달려면 로그인하십시오.

답변 (3개)

Fangjun Jiang
Fangjun Jiang 2021년 3월 29일
I believe zpk() requires Control System Toolbox. Check to see if you have it
ver control
  댓글 수: 2
Arash Kohli
Arash Kohli 2021년 3월 31일
Thank you. I have installed it.
taeho kim
taeho kim 2021년 9월 17일
omg thank you so much

댓글을 달려면 로그인하십시오.


Star Strider
Star Strider 2021년 3월 29일
In the Signal Processing Toolbox, the [z,p,k] output is optional for several filter design functions. Use those with (for example) zp2sos or others to design the filter to be used with filtfilt to filter a signal.
  댓글 수: 2
Arash Kohli
Arash Kohli 2021년 3월 31일
Thank you,
I have to add some parts to an existing program which is using zpk. Is there any toolbox in which the zpk is included?
Star Strider
Star Strider 2021년 3월 31일
There are sevral. One zpk is in the Control System Toolbox, another zpk (introduced in R2014a) is in the Signal Processing Toolbox. (There are others as well, however I do not have those Toolboxes.)
Choose the one that works in the context of what you are doing.

댓글을 달려면 로그인하십시오.


Ahmed Redissi
Ahmed Redissi 2021년 4월 14일
Hi,
While there is no "zpk" function in the Signal Processing Toolbox, there is a method called "zpk" of the object "digitalFilter". If you have the Signal Processing Toolbox, you can call the "zpk" function if the input is a digitalFilter object. Here's an example:
hpFilt = designfilt('highpassiir','FilterOrder',8, ...
'PassbandFrequency',75e3,'PassbandRipple',0.2, ...
'SampleRate',200e3);
[z,p,k] = zpk(hpFilt);
You can learn more about it here:

카테고리

Help CenterFile Exchange에서 Digital Filter Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by