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

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

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

  • matlab-optimization
    对Matlab中的优化问题进行了详细的分类阐述(introduce the optimization clesrly in matlab)
    2009-04-20 14:23:06下载
    积分:1
  • higher-order
    这是一种高阶滑模的船舶姿态控制方法,经过此程序可以实现船舶航行时的姿态控制。(a kind of higher-order sliding mode controller design for ship attitide control)
    2014-05-30 10:13:48下载
    积分:1
  • code
    1.CAmodelfusion.m 主要功能: (1)完成两个传感器各自对基于CA模型的目标状态的Kalman估计; (2)实现传感器的局部状态估计的SCC和CI融合算法的实现; (3)画出局部估计和两种融合估计的位置、速度、加速度的误差; (4)画出局部估计和两种融合估计的协方差椭圆。 2.CVmodelfusion.m 主要功能: 功能与CAmodelfusion.m基本相似,差异在于实现基于CV模型的估计和估计融合。 3.CovInter.m 主要功能: 寻找CI融合算法的融合估计的协方差阵的行列式最小的权值。 4.f_plot_ellipse_m.m 主要功能: 绘制四种估计的协方差椭圆 (1.CAmodelfusion.m main functions: (1) completion of two sensors each target state based on CA model of Kalman estimation (2) the realization of the sensor partial state estimation algorithm SCC and CI integration and (3) Draw Local estimated position and two fusion estimation, velocity and acceleration errors (4) Draw two fusion of local estimates and estimated covariance ellipse. 2.CVmodelfusion.m Main Features: a CAmodelfusion.m similar, the difference is that the estimated CV-based estimation and model integration. 3.CovInter.m main functions: Find fusion algorithm fusion CI estimated covariance matrix of the determinant minimum weight. 4.f_plot_ellipse_m.m main functions: Draw four kinds estimate covariance ellipse)
    2020-11-29 15:59:29下载
    积分:1
  • 《MATLAB在电子信息工程中的应用》源程序
    说明:  《MATLAB在电子信息工程中的应用》源程序(Application of MATLAB in Electronic Information Engineering)
    2020-06-23 22:40:01下载
    积分:1
  • matlab
    说明:  数学建模的各种程序,数学建模书上的各种程序,全部编译通过了,可以直接使用(Mathematical modeling of various processes, mathematical modeling procedures on the books, all compiled by, and can be used directly)
    2010-04-26 14:44:50下载
    积分:1
  • phtonicmatlab
    光子晶体matlab程序,有图像表示!比较长;可以仔细研究!(Photonic crystals matlab program, have images that!)
    2010-05-27 22:49:55下载
    积分:1
  • VQ_wavelet_LGB
    实现小波3级分解 构建3维跨频带矢量 然后LBG聚类 再重构原图像(Construction of wavelet decomposition to achieve three inter-band 3-D vector and then reconstruct the original image LBG clustering)
    2010-06-01 19:00:35下载
    积分:1
  • matlabfusetool
    有关图像融合的一个比较全的代码集合,有gui界面,可选择不同的处理图像方法融合图像(the image of a more integrated whole code set, a gui interface choice of different methods of image processing Image Fusion)
    2007-04-18 11:07:00下载
    积分:1
  • FMCW
    FMCW体制雷达的测距测速仿真,其中包括单点目标和多点目标的探测 参考文献: [1]屈飞园,曹宁. 车载FMCW雷达准确检测多目标的一种有效方法[J]. 科学技术与工程,2012,(06):1263-1267.(FMCW system of radar ranging speed simulation, including single-point target and multi-point target detection)
    2021-04-22 22:18:48下载
    积分:1
  • MPLAB_Tools_v7.40
    software MPLAB... writing program (coding .c/.h)
    2009-04-04 09:34:43下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载