Vector multiplication elementwise error
显示 更早的评论
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 个评论
Mathieu NOE
2020-11-10
hi
have you tried with the already available simulink blocks (transpose, dot product)
yassine kebbati
2020-11-11
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Modeling 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!