From: khan Sim on
hi,

i have a fixed point complex input to abs block in simulink. now the abs block supports real input of fixed point data types. as given in

http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/slref/abs.html

how can i perform abs function in simulink on complex inputs????

regards
khan
From: khan Sim on
"khan Sim" <akhun85(a)yahoo.com> wrote in message <hu28uf$ast$1(a)fred.mathworks.com>...
> hi,
>
> i have a fixed point complex input to abs block in simulink. now the abs block supports real input of fixed point data types. as given in
>
> http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/slref/abs.html
>
> how can i perform abs function in simulink on complex inputs????
>
> regards
> khan

well if i split the signal to real and imaginary part and take the product of imaginary part and real part with it self, , add them using the add block take squar root then its compatible with hdl,

its done.

thanx for viewing.