Effacer les filtres
Effacer les filtres

How to update a value of simulink output port which is an array.

2 vues (au cours des 30 derniers jours)
Example: Initialized at workspace as below. Const = 10; ABC[] = {0,4,0,0,2,0,0,10,0,0};
Need to develop an algorithm for below C based function.
ABC[5] = '6'; ABC[8] = Const;
Weather we can do it with Bus Creator / any other concept of doing it?

Réponse acceptée

Adithya Addanki
Adithya Addanki le 15 Jan 2016
Hi Swaroop,
You may be able to assign/update the values of an array using an Assignment block. Please refer to the attached example model.
Thank you,
Adithya
  1 commentaire
Swaroop Laxmeshwar
Swaroop Laxmeshwar le 18 Jan 2016
Hello Adithya,
Thank you for the suggestion, as well as the example model. It is helpful.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Modeling dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by