Monday, May 21, 2012

Monday MATLAB exercise and minor homework correction

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.

2 comments:

  1. Hi Professor

    I don't understand what do you mean by saying understand z = x+y. It's just simple matrix addition right?

    ReplyDelete
  2. Aminul,

    Yes, 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

    ReplyDelete