找回密码
 注册
关于网站域名变更的通知
查看: 867|回复: 1
打印 上一主题 下一主题

请问怎么用matlab编写幂函数计算方法及其步长

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2019-8-28 17:13 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

EDA365欢迎您登录!

您需要 登录 才可以下载或查看,没有帐号?注册

x

要求看MATLAB英文手册,然后发现连题目都看不懂???(扎心)" ]: m$ s0 u9 C4 Q, B" r7 ?
题目是:
0 t5 i$ X" Q2 _8 \/ n" ^( S! zWrite 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)8 E$ U9 x3 l! M2 v8 D- n# r; `& ^
x = ones(5,1) * M" T/ U: f- N' Z; n2 C
x = A*x ' h  K( q" _% |7 U' S. ~
el = max(x)
! S1 D" N2 S- V( N9 Q; f% Jx = x/el3 q$ h. E$ l( z
这么一段……__

求助!!!!!!, B9 o( a1 D' m) c8 m  p7 Z/ K: J9 y
我不知道这个标签什么鬼,求不忽略


3 W1 [  L% _7 l1 d2 f  z! C: t* {, e


: f* ]" R  Z) C) I' V+ ~; `

* G# \( n1 E. e& k/ q

1 c, U4 g) v: T( ?7 V' B! k9 o
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

推荐内容上一条 /1 下一条

EDA365公众号

关于我们|手机版|EDA365电子论坛网 ( 粤ICP备18020198号-1 )

GMT+8, 2025-11-1 23:39 , Processed in 0.125000 second(s), 23 queries , Gzip On.

深圳市墨知创新科技有限公司

地址:深圳市南山区科技生态园2栋A座805 电话:19926409050

快速回复 返回顶部 返回列表