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

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

于 2023-01-06 发布 文件大小:21.02 kB
0 149
下载积分: 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 个回复

  • normal
    Maximum likelihood estimation for normal
    2010-09-23 04:25:02下载
    积分:1
  • suiji
    随即共振的simulink仿真,可以实现共振,可以调节参数。(simulink)
    2009-06-03 09:26:17下载
    积分:1
  • min_tree
    Kruskal算法的M程序,主要用于图论问题。最终求出要求的最小树问题。(Kruskal algorithm M program, mainly for graph theory problems. Eventually find the required minimum tree problem.)
    2011-05-03 00:55:23下载
    积分:1
  • ed-with-ga
    economic load dispatch with genetic algorithm
    2012-08-07 04:58:21下载
    积分:1
  • SSIM 图像质量评价
    SSIM 图像质量评价,完整的源代码,是你学习图像质量评价的不二之选
    2022-01-26 06:11:22下载
    积分:1
  • Matrix-Cookbook
    The Matrix Cookbook 这个资料包含了矩阵的各种运算公式,对于不熟悉矩阵运算的朋友可以看看(The Matrix Cookbook This information contains a variety of computing equation matrix matrix operations are not familiar friends can see)
    2013-12-17 17:30:35下载
    积分:1
  • weibull
    说明:  能够较好地对风速进行威布尔分布函数拟合,并计算形状参数和尺度参数(It is better to fit the Weibull distribution function to the wind speed and calculate the shape parameters and scale parameters.)
    2021-05-13 12:30:02下载
    积分:1
  • 卡尔曼滤波,continuse
    连续卡尔曼滤波器实现二维系统的 MATLAB 仿真。此外,系统输出的绘制与系统状态
    2022-12-20 00:30:03下载
    积分:1
  • fillnans
    FILLNANS replaces all NaNs in array using inverse-distance weighting between non-NaN values.
    2007-08-14 11:05:34下载
    积分:1
  • gv
    说明:  matlab 电子测量 包括误差分析的很多函数(matlab dianziceliang)
    2009-03-12 07:13:43下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载