Borrar filtros
Borrar filtros

array operations in app designer

2 visualizaciones (últimos 30 días)
Dominik Gajdos
Dominik Gajdos el 14 de Abr. de 2024
Comentada: Dominik Gajdos el 14 de Abr. de 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));

Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 14 de Abr. de 2024
Editada: Fangjun Jiang el 14 de Abr. de 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 comentario
Dominik Gajdos
Dominik Gajdos el 14 de Abr. de 2024
Yeah, for some reason the values are wrong, thx

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by