zkg0329 2019-06-14 19:49
浏览 875

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

老师要求看MATLAB英文手册,然后发现连题目都看不懂???(扎心)
题目是:
Write 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)
x = ones(5,1)
x = A*x
el = max(x)
x = x/el
这么一段……__

求助!!!!!!
我不知道这个标签什么鬼,求不忽略

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 #MATLAB仿真#车辆换道路径规划
    • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
    • ¥15 数据可视化Python
    • ¥15 要给毕业设计添加扫码登录的功能!!有偿
    • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
    • ¥15 微信公众号自制会员卡没有收款渠道啊
    • ¥100 Jenkins自动化部署—悬赏100元
    • ¥15 关于#python#的问题:求帮写python代码
    • ¥20 MATLAB画图图形出现上下震荡的线条
    • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘