array operations in app designer

1 vue (au cours des 30 derniers jours)
Dominik Gajdos
Dominik Gajdos le 14 Avr 2024
Commenté : Dominik Gajdos le 14 Avr 2024
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));

Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 14 Avr 2024
Modifié(e) : Fangjun Jiang le 14 Avr 2024
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 commentaire
Dominik Gajdos
Dominik Gajdos le 14 Avr 2024
Yeah, for some reason the values are wrong, thx

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by