How to put if else condition on a differential equation in user defined Matlab function in simulink?
2 views (last 30 days)
Show older comments
I am using user defined Matlab function block in simulink and i want to excute simple differential equation with if/else condition. the simple updation law that i want excute goes like this
if 1>=e>=-1
d/dt( P)=-e*y;
else
d/dt(P)=0
end
--------------
0 Comments
Answers (0)
See Also
Categories
Find more on Fluid Network Interfaces Library 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!