在matlab中std是什么意思?

STD是C++语言命令。
std其实就是standard标准的意思。
例如std::cin就是标准输入
std::cout就是标准输出的意思~:)
一个标准库名字空间
The std namespace
The ANSI/ISO C++ standard requires you to explicitly declare the namespace in the standard library. For example,when using iostream.h,you do not have to specify the namespace of cout in one of the following ways:
std::cout (explicitly)
using std::cout (using declaration)
using namespace std (using directive)
Visual C++ continues to support the use of older header filenames with the .h extension. Such usage does not require invocation of the std namespace described above.
扩展资料
std(A)函数求解的是最常见的标准差,此时除以的是N-1。
注意:此函数命令不能对矩阵求整体的标准差,只能按照行或者列进行逐个求解标准差,默认情况下是按照列。
在MATLAB主窗口中输入std(A) 回车,结果如下:
输出的是每一列的标准差。
在MATLAB主窗口中输入如下命令:std(A,1,1) 敲回车 std(A,1,2) 敲回车。
参考资料来源:百度百科-STD
  1、std函数是用来计算标准偏差的一个函数,由于其有不同的参数,我们就用下面的例子进行介绍:  A =  1 2 3  1 1 1  2、std(A):  std(A)函数求解的是最常见的标准差,此时除以的是N-1。  注意:此函数命令不能对矩阵求整体的标准差,只能按照行或者列进行逐个求解标准差,默认情况下是按照列。  在MATLAB主窗口中输入std(A) 回车,结果如下:  输出的是每一列的标准差。  3、std(A,flag):  这里flag代表的是用哪一个标准差函数,如果取0,则代表除以N-1,如果是1代表的是除以N,在MATLAB主窗口中输入std(A,1) 回车,std(A,0) 回车,可以看到如下结果  4、std(A,flag,dim):  第三个参数代表的是按照列求标准差还是按照行求标准差,std(A,1,1)代表的是按照列求标准差,std(A,1,2)代表的是按照行求标准差。  在MATLAB主窗口中输入如下命令:std(A,1,1) 敲回车 std(A,1,2) 敲回车。
文章标签:

本文链接:https://www.u1e.cn/baike/a/d4ad750cfdcf3c757c122731 [复制]

猜你喜欢

歇后语大全

还没有人回应过