登录
首页 » Matlab » 录入程序代码,并对该实验代码进行调试,检查程序代码中的语法和语义错误。 编写函数f(x)的代码如下: Romberg算法¨ function z=...

录入程序代码,并对该实验代码进行调试,检查程序代码中的语法和语义错误。 编写函数f(x)的代码如下: Romberg算法¨ function z=...

于 2023-01-06 发布 文件大小:21.02 kB
0 73
下载积分: 2 下载次数: 1

代码说明:

录入程序代码,并对该实验代码进行调试,检查程序代码中的语法和语义错误。 编写函数f(x)的代码如下: Romberg算法¨ function z=f(x) if (x~=0) z=sin(x)/x else z=1 end 备注:在实验代码中,首先输入必要的变量的值如下: a=0 b=1 tol=1e-8 待查询检查通过,开始输入执行代码 设置格式format short g查看u的值和sin(u)的值: -Input program code, and debugging code for the experiment to check the program code in the syntax and semantic errors. The preparation of a function f (x) of the code is as follows: Romberg algorithm ¨ function z = f (x) if (x ~ = 0) z = sin (x)/x else z = 1 end Note: In the experimental code, First, enter the necessary value of the variable is as follows: a = 0 b = 1 tol = 1e-8 pending inquiries, checking through, began to enter the implementation of the code format format short g see u, values and sin (u) values:

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • GridStorageBatt
    GRID STORAGE BATTERY
    2013-01-09 02:23:06下载
    积分:1
  • Hoofdstuk-6
    Great Way to start programming !
    2014-12-28 04:41:33下载
    积分:1
  • PCA
    说明:  基于PCA人脸识别算法的研究,用matlab实现。(PCA-based face recognition algorithm using matlab to achieve.)
    2010-04-24 15:27:59下载
    积分:1
  • xingcheng
    行程编码的matlab源程序,用于实现图像压缩(Travel matlab source coding for image compression)
    2014-12-10 19:44:45下载
    积分:1
  • bosukuandai11
    采用DC加权的恒定束宽的宽带波束形成器,其中迭代用的是Newton迭代法(DC weighted using constant beamwidth broadband beamformer, which iteration is the Newton iterative method)
    2020-12-19 19:39:10下载
    积分:1
  • svm
    一支持向量机有用的程序,希望对大家有用,我们一起学习进步。(A support vector machine useful procedure, useful for all of us hope that we learn and progress together.)
    2007-12-31 11:43:01下载
    积分:1
  • mulGSND-mulGXF1
    mulGSND mulGXF1 解非线性方程组  非常好用的算法 希望大家能用到 (Nonlinear equations is very useful method to hope that we can)
    2011-01-20 15:06:51下载
    积分:1
  • ct
    说明:  常规OFDM系统容易导致ICI,为了消除ICI,在信号传输前进行编码,本系统为1/2PCC编码,提高系统效率。(Conventional OFDM system easily lead to ICI, is encoded in the signal before transmission, in order to eliminate ICI, this system for 1/2PCC encoding to improve system efficiency.)
    2012-03-23 15:38:18下载
    积分:1
  • duffing
    duffing 混沌系统仿真,做控制的经常使用这个对象来验证控制性能。(duffing chaotic system simulink)
    2012-05-08 18:26:48下载
    积分:1
  • UCA_LMS
    八阵元均匀圆阵波束赋型LMS算法,实现三维方向图(Eight-membered uniform circular array beamforming LMS algorithm, three-dimensional directions in FIG.)
    2017-03-29 22:04:13下载
    积分:1
  • 696518资源总数
  • 105578会员总数
  • 20今日下载