Implementing Level-1 MATLAB S-function
Show older comments
I'm using a Level-1 MATLAB S-function in simulink. Its
[sys,x0,str,ts] = fcn1(t,x,u,flag)
- u's size is 2
- x's size is 3
- How should I use this in Simulink/MATLAB?
- Should I enetr t and flag? How?
- How should I deal with inputs and outputs? Using DEMUX and MUX? How?
- What's the priority of u,x.t?
- What're the outputs that I receive?
I'll appreciate if you give me an full example.
Answers (0)
Categories
Find more on Simulink in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!