A Quick Introduction to Matlab

gravity = -9.8*ones(5,5) The size() function returns an array [nrows, ncols] with the number of elements in each dimension of the array. ... The period tells Matlab to do this math on every element of x. Without the period Matlab tries to treat the x array as a matrix and do matrix algebra. There’s more on this in M1_Arrays. Plotting: ................
................