Your variables tranposeA and y have sizes 2x4 and 1x4, respectively.
It is unclear to me whether you wanted a matrix multiplication or an element-wise multiplication. (If you don't know the difference, read about it in this documentation.) You can stop your code an inspect your variable at any point by using the debugger. Because I don't know what you want your code to do, I cannot offer specific advice on how to fix it. But the above information should help you fix it.
However, my best guess is that you intended x and y to be column vectors, not row vectors. If you try
then your code will run to completion. But, again, I don't know if this is really what you want.
0 Comments
Sign in to comment.