Borrar filtros
Borrar filtros

Undefined function or variable 'chebwin'.

2 visualizaciones (últimos 30 días)
Munirah Yusof
Munirah Yusof el 9 de Mzo. de 2021
Comentada: Munirah Yusof el 9 de Mzo. de 2021
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?

Respuesta aceptada

Walter Roberson
Walter Roberson el 9 de Mzo. de 2021
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 comentario
Munirah Yusof
Munirah Yusof el 9 de Mzo. de 2021
I understand what you mean. Thank you for helping me.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre EEG/MEG/ECoG en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by