I have this simple operation
Both arrays are 1x6, but still got error
Arrays have incompatible sizes for this operation.
app.delta1 = sum(abs(app.uhly_array - app.theta1));

 採用された回答

Fangjun Jiang
Fangjun Jiang 2024 年 4 月 14 日
編集済み: Fangjun Jiang 2024 年 4 月 14 日

0 投票

Need to specify the .Value property? If not, just pause the code and check its value, app.uhly_array and app.theta1
app.delta1.Value = sum(abs(app.uhly_array.Value - app.theta1.Value))

1 件のコメント

Dominik Gajdos
Dominik Gajdos 2024 年 4 月 14 日
Yeah, for some reason the values are wrong, thx

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Develop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by