You need to transpose X
and ‘B’ to get the correct result. Try the following:
C = A * (X.') + B.';
0
solved multiply two arrays with different size in matlab
You need to transpose X
and ‘B’ to get the correct result. Try the following:
C = A * (X.') + B.';
0
solved multiply two arrays with different size in matlab