Why do I receive an "Array dimensions mismatch" in Stateflow

The following shows the C code that I am attempting to duplicate in Stateflow however I receive the error
SensorData = [1:56];
for(j=0;j<MAT_SIZE;j++)
{
//if (i==j)
result = result + (SensorData[i]-Mean[i])*SigmaInverse[i][j]*(SensorData[j] Mean[j]);
}
The attached image shows the for loop and the error in Stateflow.
Thanks,
Gary

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeStateflow についてさらに検索

質問済み:

2015 年 5 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by