pass zeros to input using a flag
Mostra commenti meno recenti
Hello, i am trying to use an enable/disable flag for an inport that takes in a bus. The bus is named MyBus and has two signals: Force and Torque, each one of size 3x1. If the enable flag is set to 1, then i want to pass in the values from the inport. If the flag is set to false, then i would like to pass 0s. The vectors from the bus each go into separate summers.
Is there a way to do this? Or is there a better way of doing this?

Risposta accettata
Più risposte (0)
Categorie
Scopri di più su General Applications in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!