Can anyone help me with the water level tank (sltank) example available on Matlab?
4 views (last 30 days)
Show older comments
What does sys=[0 0 0 2 0 0] mean? it is available in flag==0 S-function code for the water level tank example available by writing in the matlab command: (sltanlk)
0 Comments
Accepted Answer
Walter Roberson
on 24 Jan 2012
When the setup phase is run, a vector of sizes and flags must be returned. http://www.mathworks.com/help/toolbox/simulink/sfg/f7-67615.html#f7-13642
If we count the fields shown there from the top, a 2 in the 4th field would correspond to saying that the S-block has 2 inputs.
More Answers (0)
See Also
Categories
Find more on MATLAB Mobile in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!