필터 지우기
필터 지우기

Undefined function or variable 'chebwin'.

조회 수: 2 (최근 30일)
Munirah Yusof
Munirah Yusof 2021년 3월 9일
댓글: Munirah Yusof 2021년 3월 9일
Hi! I'm having trouble with my Matlab code. When I run the code, it shows this.
Undefined function or variable 'chebwin'.
Error in problem (line 33)
[ps2,freq]=pwelch(data,chebwin(128,100),[],N,Fs);% plotting half of the power spectrum with 50% overlap and chebwin window of length
128
Is this a problem with the toolbox or another issue?

채택된 답변

Walter Roberson
Walter Roberson 2021년 3월 9일
chebwin() needs the Signal Processing Toolbox to be installed and licensed. That is the same toolbox as pwelch, but due to the way MATLAB executes functions, it would not look for pwelch until after it had resolved all the parameters to the pwelch call.
  댓글 수: 1
Munirah Yusof
Munirah Yusof 2021년 3월 9일
I understand what you mean. Thank you for helping me.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 EEG/MEG/ECoG에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by