array operations in app designer

24 views (last 30 days)
Dominik Gajdos
Dominik Gajdos on 14 Apr 2024 at 20:31
Commented: Dominik Gajdos on 14 Apr 2024 at 21:28
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));

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 14 Apr 2024 at 20:59
Edited: Fangjun Jiang on 14 Apr 2024 at 21:02
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 Comment
Dominik Gajdos
Dominik Gajdos on 14 Apr 2024 at 21:28
Yeah, for some reason the values are wrong, thx

Sign in to comment.

More Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!