pass matrix to EML in stateflow...

1 回表示 (過去 30 日間)
Kevin Noll
Kevin Noll 2013 年 8 月 10 日
I have defined an data store memory to share with a stateflow chart. The size is defined as [10 5]. In the stateflow chart, I need to pass the contents of the data store memory to an embedded matlab function (newlist = addToList(dsmlist)).
When I compile the chart, i receive an error
----- Index expression out of bounds. Attempted to access element 2. The valid range is 1-1. More information
Function 'addToList' (#66.95.96), line 6, column 18:"2" Launch diagnostic report. -----
I cannot figure out how to tell the compiler the size of "dsmlist" so that it will continue compiling.
  1 件のコメント
Kaustubha Govind
Kaustubha Govind 2013 年 8 月 12 日
The error seems to be coming from Function 'addToList', line 6, column 18 can you post the corresponding code at that line?

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeStateflow についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by