undefined function ’eml_lib_assert’

Hi everyone.

I am trying to run a signal processing code provided by others, which is to plot the curve of digital filter. But it gives me the following error

"

Undefined function ’eml_lib_assert’ for input arguments of type ‘char’.

Error in freqz (line 15)

eml_lib_assert(nargin>=1,’signal:freqz:notEnoughInputs’,’Not enough input arguments.’);

"

The original code is as follows

"

num=[0.0528 0.797 0.1295 0.1295 0.797 0.0528];

den=[1 -1.8107 2.4947 -1.8801 0.9537 -0.2336];

[z,p,k]=tf2zp(num,den)

figure(1);

zplane(z,p)

m=256;

w=[1:pi/m:pi];

%h=freqz(num,den,w);

[H w]=freqz(num,den);

magH=abs(H);

figure(2);

plot(w,magH);

xlabel(‘omega/’); ylabel(‘|H(e^j^omega)|’); grid;

“

The person who provided this code mentioned to set path in MATLAB, but I have no clue how to properly set the correct path. The matlab version I am currently using is R2013b with the Signal Processing Toolbox version 6.20.

Any insights or ideas will be greatly appreciated. Thanks.Hi everyone.

I am trying to run a signal processing code provided by others, which is to plot the curve of digital filter. But it gives me the following error

"

Undefined function ’eml_lib_assert’ for input arguments of type ‘char’.

Error in freqz (line 15)

eml_lib_assert(nargin>=1,’signal:freqz:notEnoughInputs’,’Not enough input arguments.’);

"

The original code is as follows

"

num=[0.0528 0.797 0.1295 0.1295 0.797 0.0528];

den=[1 -1.8107 2.4947 -1.8801 0.9537 -0.2336];

[z,p,k]=tf2zp(num,den)

figure(1);

zplane(z,p)

m=256;

w=[1:pi/m:pi];

%h=freqz(num,den,w);

[H w]=freqz(num,den);

magH=abs(H);

figure(2);

plot(w,magH);

xlabel(‘omega/’); ylabel(‘|H(e^j^omega)|’); grid;

“

The person who provided this code mentioned to set path in MATLAB, but I have no clue how to properly set the correct path. The matlab version I am currently using is R2013b with the Signal Processing Toolbox version 6.20.

Any insights or ideas will be greatly appreciated. Thanks. Hi everyone.

I am trying to run a signal processing code provided by others, which is to plot the curve of digital filter. But it gives me the following error

"

Undefined function ’eml_lib_assert’ for input arguments of type ‘char’.

Error in freqz (line 15)

eml_lib_assert(nargin>=1,’signal:freqz:notEnoughInputs’,’Not enough input arguments.’);

"

The original code is as follows

"

num=[0.0528 0.797 0.1295 0.1295 0.797 0.0528];

den=[1 -1.8107 2.4947 -1.8801 0.9537 -0.2336];

[z,p,k]=tf2zp(num,den)

figure(1);

zplane(z,p)

m=256;

w=[1:pi/m:pi];

%h=freqz(num,den,w);

[H w]=freqz(num,den);

magH=abs(H);

figure(2);

plot(w,magH);

xlabel(‘omega/’); ylabel(‘|H(e^j^omega)|’); grid;

“

The person who provided this code mentioned to set path in MATLAB, but I have no clue how to properly set the correct path. The matlab version I am currently using is R2013b with the Signal Processing Toolbox version 6.20.

Any insights or ideas will be greatly appreciated. Thanks. eml_lib_assert; set path; resample; dsp MATLAB Answers — New Questions

​

Leave a Reply

Your email address will not be published. Required fields are marked *