Effacer les filtres
Effacer les filtres

Simulink function block to multiply a signal with -1 if its negative

15 vues (au cours des 30 derniers jours)
Hi
Is it possible that I can use a block in Simulink to set conditions that if this signal which is going to be a numerical is less than 0 than simulation multiplies it by -1 to convert it to positive?
Or have two function blocks one for a positive number and one negative and depending on the number simulation takes two different paths?
Thanks for the help

Réponse acceptée

Chandrasekhar
Chandrasekhar le 4 Avr 2014
find the attached logic
  2 commentaires
James Murray
James Murray le 4 Avr 2014
Thank you
Chandrasekhar
Chandrasekhar le 4 Avr 2014
Or else u can use an abs block of Math operations. simple...

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by