matlab.what is the difference between std(A) and std(A,1) ?
时间: 2024-05-26 13:11:09 浏览: 100
The function std(A) computes the standard deviation of the elements in matrix A along the first non-singleton dimension. The function std(A,1) computes the standard deviation of the columns of matrix A. So if A is a row vector, std(A) and std(A,1) will produce the same result. But if A is a matrix, std(A) will produce the standard deviation of all elements in the matrix, while std(A,1) will produce a row vector containing the standard deviation of each column.
阅读全文