Correction to HW 1: The file names for the two MATLAB files you turn in should be HW1Prob1LastName.m and HW1Prob2LastName.m. The assignment originally listed these file names as HW2Probx... The homework assignment on T-Square has been updated.
MATLAB exercise: Create two row vectors with three elements by typing x = [1 2 3] and y = [2 1 0]. Evaluate z = x + y and understand what this quantity is.
MATLAB exercise: Create two row vectors with three elements by typing x = [1 2 3] and y = [2 1 0]. Evaluate z = x + y and understand what this quantity is.
Hi Professor
ReplyDeleteI don't understand what do you mean by saying understand z = x+y. It's just simple matrix addition right?
Aminul,
ReplyDeleteYes, you are correct. One point of the exercise is to see that MATLAB adds vectors in a simple way; you don't need to add components of the vectors separately.
Prof. Sholl