Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
problem with fdesign

Subject: problem with fdesign

From: MICHAEL

Date: 7 Jun, 2010 19:14:20

Message: 1 of 2

hi

i have the following code:

filter = fdesign.bandpass(.4,.48,.52,.60,80,1,80);
BandPassFilt = design(filter, 'equiripple');
C=filter(BandPassFilt,smps);

but i get error:
??? Error using ==> subsindex
Function 'subsindex' is not defined for values of class
'dfilt.dffir'.


what's the problem?

Subject: problem with fdesign

From: Frantz Bouchereau

Date: 7 Jun, 2010 19:28:06

Message: 2 of 2

Hi Michael,
Do not assign your filter design output to a variable called 'filter'
because that creates a conflict with the filter function.

This works fine:

>> f = fdesign.bandpass(.4,.48,.52,.60,80,1,80);
>> BandPassFilt = design(f, 'equiripple');
>> C = filter(BandPassFilt,randn(10,1))

HTH

Frantz


"michael" <bezenchu@gmail.com> wrote in message
news:hujgec$l0m$1@fred.mathworks.com...
> hi
> i have the following code:
>
> filter = fdesign.bandpass(.4,.48,.52,.60,80,1,80);
> BandPassFilt = design(filter, 'equiripple');
> C=filter(BandPassFilt,smps);
>
> but i get error:
> ??? Error using ==> subsindex
> Function 'subsindex' is not defined for values of class
> 'dfilt.dffir'.
>
>
> what's the problem?

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us