how to use matlab function in simulink when there are while loops in function?
2 views (last 30 days)
Show older comments
For example:
function y = fcn(u) if u>-1 y = 2; elseif u<=-1 y=4; end end
the input of function is a ramp block of the simulink.
Thanks
0 Comments
Answers (0)
See Also
Categories
Find more on Loops and Conditional Statements 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!