Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • 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
Joined
Sep 15, 2005
Messages
8
Location
DE
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??
 
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

Back
Top