A Quick Introduction to Matlab

And to make an array with all values equal to one, use the one(Nrows,Ncols) command. myzero = zeros(5,5) myone = ones(2,3) And, to make an array filled with the same constant number, use the ones(Nrows,Ncols) command. 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. ................
................