How to stop a simulation if condition is true
6 次查看(过去 30 天)
显示 更早的评论
Hi all
How to I force matlab to stop if a condition that I declare is true? What is the command I should use. I have
if m.water_lp_service > m.water_lp
display('m.water_lp_service exceeds m.water_lp')
end
and besides displaying that, I would like to force matlab to stop. Anyone?
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!