{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

ENG FINAL EXAM NOTES

# ENG FINAL EXAM NOTES - Ch7 Data analysis 7.1 max and min...

This preview shows pages 1–2. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Ch7: Data analysis 7.1 max and min • max(x)- Returns largest value in vector x, or the row vector of largest elements of each column in matrix x • [y,k] = max(x) - Returns maximum values y and corresponding indices k of the first maximum value from each column of x. • max(x,y)- Returns a matrix the same size as x and y, with each element being the maximum value from the corresponding positions in x and y. • min(x)- Returns smallest value in vector x, or the row vector of smallest elements of each column in matrix x • [y,k] = min(x) - Returns minimum values y and corresponding indices k of first minimum value from each column of x. • min(x,y) - Returns matrix the same size as x and y, with each element being the minimum value from the corresponding positions in x and y. 7.2 sums and products • sum(x)-Returns the sum of the elements in vector x, or the row vector of the sum of elements of each column in matrix x • prod(x)-Returns the product of the elements in vector x, or the row vector of the product of elements of each column in matrix x • cumsum(x)- Returns a vector the same size as x containing the cumulative sum of the elements in vector x, or a matrix the same size as x containing cumulative sums of values from the columns of x. • cumprod(x)- Returns a vector the same size as x containing the cumulative product of the elements in vector x, or a matrix the same size as x containing cumulative products of values from the columns of x. 7.3 Statistical analysis • N = hist(x)-Returns the row vector histogram N of the values in x using 10 bins. If x is matrix, returns a histogram matrix N operating on the columns of x. • N = hist(x,m)-Returns the row vector histogram N of the values in x using m bins. • N = hist(x,xc)-Returns the row vector histogram N of the values in x using bin centers specified by xc. • N = histc(x,edges)-Counts the number of values in vector x that fall between the elements in the edges vector (which must contain monotonically non-decreasing values). N is a length(edges) vector containing these counts. N(k) will count the value x(i) if edges(k) >= x(i) > edges(k+1). The last bin will count any values of x that match edges(end). Values outside the values in edges are not counted. Use -inf and inf in edges to include all non-NaN values. • [N,xc] = hist(...) hist (...)- Also returns the position of the bin centers in xc. Without output arguments produces a histogram bar plot of the results. • mean(x)-Returns sample mean of the elements of the vector x. Return a row vector of the sample means of the columns of matrix x. • median(x)-Returns the median of the elements of the vector x Returns a row vector of the medians of the columns of matrix x....
View Full Document

{[ snackBarMessage ]}

### Page1 / 6

ENG FINAL EXAM NOTES - Ch7 Data analysis 7.1 max and min...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online