Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

filter function

Status
Not open for further replies.

07011983

Automotive
Sep 15, 2005
8
He!

I was wondering... In a m-file I can make a filter by a sommation of 100 data samples and then calculate the mean of that.

c = ones(1,100)/100;
fy= filter(c,1,y);

Now I want this to do in simulink, but I have no idea how to make something?!?! Any suggestions??
 
Replies continue below

Recommended for you

Hi,
I would do it with a M-file s-function, that's the simpliest way. So you can use your already excisting code.

Best Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor