最近开始学matlab,遇到3^A,不知其具体是怎样运算的?>> A=ones(2)A = 1 1 1 1>> 3^Aans = 5.0000 4.0000 4.0000 5.0000这个结果是怎么得到的呢?请知道的大侠指点一下,谢了!
在Command Window下输入help ^得到如下提示 ^ Matrix power. Z = X^y is X to the y power if y is a scalar and X is square. If y is an integer greater than one, the power is computed by repeated squaring. For other values of y the calculation involves eigenvalues and eigenvectors. Z = x^Y is x to the Y power if Y is a square matrix and x is a scalar. Computed using eigenvalues and eigenvectors. Z = X^Y, where both X and Y are matrices, is an error. C = MPOWER(A,B) is called for the syntax 'A ^ B' when A or B is an object. See also power.其中“ Z = x^Y is x to the Y power if Y is a square matrix and x is a scalar. Computed using eigenvalues and eigenvectors.”就是计算规则。我只知道这么多了。具体怎么使用特征值和特征向量我也不了解。给个链接吧http://www.ilovematlab.cn/thread-46757-1-1.html,会有一点收获 |
|