-
Rombegrg
录入程序代码,并对该实验代码进行调试,检查程序代码中的语法和语义错误。
编写函数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:)
- 2009-12-28 22:03:42下载
- 积分:1
-
three_motor
matlab仿真MATLAB电机仿真精华50例--源代码异步电机\asymotor_stator.mdl
- 2010-01-16 22:02:43下载
- 积分:1
-
drawing
说明: maitlab在绘图方面的实例及命令用法(maitlab instance of the drawing area and command usage)
- 2011-03-27 23:00:37下载
- 积分:1
-
matlabgraphicsandimagontheintrodtion
说明: matlab关于图形与图像的介绍,很不错,分享一下(matlab graphics and images on the introduction, it is good to share)
- 2010-03-18 19:33:07下载
- 积分:1
-
Henon
混沌模型Hennon序列产生程序,用于仿真分析混沌序列对初值的敏感性(Chaotic model Hennon sequence generation program for simulation of the sensitivity of chaotic sequences on initial)
- 2011-05-11 15:42:20下载
- 积分:1
-
Matlab-programming-code-optimization
matlab程序编写中代码优化的基本原则和方法,本文是一篇外文文献,其中举了一些实例(Matlab programming code optimization in the basic principles and methods This article is a foreign language literature, which gave some examples)
- 2012-06-27 17:25:58下载
- 积分:1
-
mie_abcd
使用matlab计算金属纳米粒子的光散射系数.(Metal nanoparticles using matlab calculations of light scattering coefficient.)
- 2010-12-28 09:48:25下载
- 积分:1
-
Tap-44
Pedagogy Pedagogy Pedagogy
- 2011-04-21 01:27:29下载
- 积分:1
-
(2)
用matlab实现卡尔曼滤波,并且关键的地方有注释说明 (Kalman function programed by matlab)
- 2012-03-23 18:49:29下载
- 积分:1
-
butterworth
butterworth滤波器,实现高通低通带通的butterworth滤波器
- 2009-04-12 12:29:05下载
- 积分:1