How to implement a continue/return/skip current step in simulink?
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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
2 Commenti
Murali Sriram
il 8 Giu 2022
Modificato: Murali Sriram
il 8 Giu 2022
You can try out the If-Then-Else block of simulink along with enabled subsystem block.
For your reference : https://www.mathworks.com/help/simulink/slref/if-then-else-blocks.html
Risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!