EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
要求看MATLAB英文手册,然后发现连题目都看不懂???(扎心)- X2 |8 R$ g- j+ {+ ]2 F. T5 Z3 C9 S
题目是:
) ?% j" d; _ ?8 f7 _1 f; TWrite a function program to peRForm the Power Method on the input matrix A. Use a while loop to make it continue until the values stop changing (up to some tol). Put a counter in the loop to count the number of steps. Try your program on some random symmetric matrices of various sizes (Hint: use A=randn(n) then A=A·A’). Is there a relationship between the size and the number of steps needed or between the size and the ew? Turn in a printout of your program and a brief report on the trial. 我用有道翻译了一遍,发现大致是:**编写函数程序,在输入矩阵a上执行幂函数方法。使用while循环使其继续,直到值停止变化(直到某个tol)。在循环中放置一个计数器来计算步数。在不同大小的随机对称矩阵上尝试您的程序(提示:使用A=randn(n)然后A=A·A ')。大小和需要的步骤数之间或者大小和ew之间有关系吗?提交一份你的程序打印件和一份关于试验的简要报告。** 所以我真的懵逼了!求助这个到底应该怎么解决? 其中手册上附带了 A = hilb(5)
* V7 K8 E9 o( U4 ^! q9 w1 yx = ones(5,1)
, I/ Y+ v5 {6 ]7 K. qx = A*x 0 k$ Z' z- }. j! i$ {: {8 w4 ]
el = max(x) ( f2 K3 b) P2 S$ L5 q0 q
x = x/el
8 r3 l; v! K$ ?, A0 D0 X: }这么一段……__
求助!!!!!!
% K* f4 {3 V" W, j/ ?$ D: s, @我不知道这个标签什么鬼,求不忽略 2 _! j& t: G" P
7 c5 z0 M4 q8 d
V3 o: {0 n9 t! |# h! l0 p
! b0 _1 d' f5 e% v" Y: S% ` |