I'm currently trying to learn Matlab so I was going through a tutorial that doesn't provide solutions to the exercises, and I thought the following two questions deserve some more attention in order to develop a deeper understanding of perhaps both the way the language works and Linear Algebra:
Given x = [6 1 -8], y = [1 1 2] and A = [-3 0 3; 6 -2 6], determine which of the following statements will correctly execute and provide the result. Try to understand why it fails.
(i) x + A
(ii) x' (which is x transpose) + y
x and y are row vectors, so in (ii) we're dealing with addition of vectors with dimensions 1x3 and 3x1 respectively, which I thought was impossible, and the resulting 3x3 matrix is also not intuitive to me at all.
For (i) I'm also lacking the mathematical intuition, but reading some Matlab documentation it seems that in vector matrix or matrix vector addition with different dimensions, Matlab treats the vector as a matrix with the same dimensions as the given matrix?
Any thoughts/ideas/suggested readings are appreciated! Thank you for your patience.