Borrar filtros
Borrar filtros

Vector multiplication elementwise error

3 visualizaciones (últimos 30 días)
yassine kebbati
yassine kebbati el 10 de Nov. de 2020
Comentada: yassine kebbati el 11 de Nov. de 2020
Hello evryone!
I am facing a weid issue with MATLAB function in simulink, I have this multiplication to do:
A = [1;2;3;4];
B = [2;3;5;6];
Z = A'.*B;
which when I do it in a script or workspace I get this result
but somehow it doesn't work in matlab function (simulink) and throughs in a dimenstion error!
is there a way to get around this error ??
  2 comentarios
Mathieu NOE
Mathieu NOE el 10 de Nov. de 2020
hi
have you tried with the already available simulink blocks (transpose, dot product)
yassine kebbati
yassine kebbati el 11 de Nov. de 2020
No i haven't tried this because i do this calculation in the middle of a long code.

Iniciar sesión para comentar.

Respuesta aceptada

Bruno Luong
Bruno Luong el 10 de Nov. de 2020

Más respuestas (0)

Categorías

Más información sobre Array and Matrix Mathematics en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by