Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

A question of M-file S-Function

Status
Not open for further replies.

shenshen

Electrical
Joined
Jul 18, 2003
Messages
1
Location
TW
Hi, I have a question,
when I writing a M-file S-Function, how can I setting
a global variable? And, every time when Simulink call
this S-Function,the value of the variable(ex. a array buffer)
is not changed,i.e. the variable holds the value of the
previous simulation step.

Best Regards

shen

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top