How to implement a continue/return/skip current step in simulink?

How do I emplement equivalent of the following matlab in simulink
if(b == 0)
return % Skip Current Step and output previous value of c
else
c = a / b; % Output New value of c
end
if(v < 0 | i < 0)
return % Skip Current Step if voltage is negative
else
p = v / i; % Output New value of c
end

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Modeling 的更多信息

产品

版本

R2021a

标签

提问:

2022-5-18

评论:

2022-6-12

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by