Fcn block and complex number

Hi ,
I am new to simulink so trying out.
I connected a DQPSK Modulator block --> Fcn Block --> DQPSK Demodulator block. With u as input to Fcn,
I tried real(u) + i*imag(u)
I get the following error:
The expression: real(u) + i*imag(u)
in 'commexperiment1/Fcn'
has a syntax error
Question :
  1. What is wrong with the syntax?
  2. I dont have MEX so Matclab Function block fails as well.
Is there any other way to add custom functions in simulink?
thanks Venkatesh

1 Comment

I don't see any error. Post the entire function

Sign in to comment.

Answers (0)

Tags

Asked:

on 28 Mar 2014

Commented:

on 28 Mar 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!