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

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?

 채택된 답변

Adithya Addanki
Adithya Addanki 2016년 1월 15일

0 개 추천

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

Hello Adithya,
Thank you for the suggestion, as well as the example model. It is helpful.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by