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 件のコメント

Swaroop Laxmeshwar
Swaroop Laxmeshwar 2016 年 1 月 18 日
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