Summary of matlab methods used in connie
size(mat,dim) - Prints the size of a particular dimension of a matrixlength(arr) - Output the scalar size of an arrayones(x,y) - Create a vector/matrix of all oneszeros(x,y) - Create a vector/matrix of all zerosissparse(mat) - Returns 1 if the storage class is sparsediag(A), diag(v) - Returns a column vector of the diagonal elements of A or a square matrix with the elements of v as the diagonal elements (zeros elsewhere).sparse(A), sparse(m,n) - Creates a sparse matrix from the matrix A or an m by n sparse matrix of all zeros.find(X>2), find(X>2)=0 - Finds indicies of elements of X greater than 2, or finds elements of X greater than 2 and sets them to 0isempty(A) - Determines whether an array is emptyintersect(A,B) - Returns data common to A and B without repetition'norm(S,'fro') - Calculates the frobenius norm of a sparse matrix.union(A,B) - Returns the combined data from A and B without repetitionrand(rows,cols) - Creates a matrix of random numbers of the given dimensionssnsolve() - Can't accesssnopt() - Can't access