filter function
filter function
(OP)
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??
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??
RE: filter function
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