From: hajime yamada on
Hi. I am a beginner in Stateflow. In my State, I have an assignment statement as follows:

mode=2;
Fn = -br*kq;

When I tried to run the model, I kept getting something called Lex Error. It listed:

mode=2;
^
syntax error

Fn = -br*kq;
^
syntax error

Anybody knows what is wrong and how to fix it? Thanks.