MATLAB: Vector multiplication elementwise error

elementwisematrixmultiplicationsimulinkverctor

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 ??

Best Answer

Z = B*A.';