How to determine sign properties (++, +-, --) of sum block using matlab coding
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Abhibrata Adhikary
le 20 Juin 2022
Réponse apportée : Jon
le 20 Juin 2022
I have two sum blocks, one with sign (++) and other with (+-). Will help of matlab coding, how will I be able to extract these properties. Appreciate all the help.
0 commentaires
Réponse acceptée
Jon
le 20 Juin 2022
Suppose your Simulink model is called myModel, and the sum blocks are named Sum1 and Sum2.
You can get the signs, for example for Sum1 using:
signs = get_param('myModel/Sum1','Inputs');
You can set the signs using
set_param('myModel/Sum1','Inputs','|+-')
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Simulink Functions 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!