array operations in app designer

1 回表示 (過去 30 日間)
Dominik Gajdos
Dominik Gajdos 2024 年 4 月 14 日
コメント済み: Dominik Gajdos 2024 年 4 月 14 日
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 日
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 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by