From: Benjamin on
Hi all,

I would like to normalize signal from a simulink model but I don't know how to do it. I have tried to embedd the next function:

function y = fcn(u)
y=u/(max(abs(x));

but it doesn't work because the output signal only takes values +1 or +1 depending on the input sign value. This make me think that simulink is working for each input sample individually and not for all the signal values as I expected. I also have tried the available blocks from the library but they don't what I want.

Dow you know if it is possible to do that?

Thanks in advance

benjamin