-
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
-
KFCESHI1
本人根据卡尔曼滤波原理,编写的Kalman小程序,简单可用!(I based on the principle of Kalman filtering, Kalman write small programs, simply available!)
- 2014-11-26 11:18:55下载
- 积分:1
-
Single
单个圆椭球干扰计算(根据切片法理论计算)(Single round ellipsoid interference calculations)
- 2014-01-10 12:22:17下载
- 积分:1
-
Global_Optimization_Toolbox30_win32
this is a book about how to use optimization toolbox
- 2014-01-09 21:45:32下载
- 积分:1
-
SAA-MATLAB
模拟退火算法的MATLAB实例,包含图作色,旅行商等多个问题的例子。(Simulated annealing algorithm of MATLAB examples, including Fig作色, traveling salesman problem, and many other examples.)
- 2009-05-18 11:33:54下载
- 积分:1
-
mipSolver
mip线性混合整数规划工具箱,比较实用,可以实现整数线性规划。(mip linear mixed integer programming toolkit, more practical)
- 2011-01-20 11:43:04下载
- 积分:1
-
pls_matlab
偏最小二乘法pls的原理,例子,算法,练习,包含完整代码(The principles of PLS , examples, algorithms, practice, including a complete code.)
- 2010-05-13 11:18:03下载
- 积分:1
-
example4_6
:滤波
fs=400 采样频率,必须大于两倍基带信号最高频率
ts=1/fs 采样时间间隔
T=5 时间窗大小
t=0:ts:T (hf1=zeros(1,N)
hf1(f<=B1&f>=-B1)=1
y1=hf1.*fftshift(y)
figure
subplot(211)
plot(f,abs(fftshift(y))/N,f,hf1, r-- )
axis([-fs/2,fs/2,0,1.2])
title( 原信号频谱 )
xlabel( f /Hz )
subplot(212)
plot(f,abs(y1)/N)
title( 低通滤波,截止频率90Hz )
xlabel( f /Hz ))
- 2010-05-25 20:58:05下载
- 积分:1
-
matlabME
it s really good code for motion estimation in a video
on image processing
- 2013-04-03 13:50:21下载
- 积分:1
-
mc
说明: 用MATLAB编写的运用Monte Carlo method数值积分的实例程序。可供初学者参考学习!(TETRAHEDRON_MONTE_CARLO is a MATLAB library which estimates the integral of a function over a tetrahedron using the Monte Carlo method.
The library makes it relatively easy to compare different methods of producing sample points in the tetrahedron, and to vary the tetrahedron over which integration is carried out.
)
- 2009-09-20 16:18:51下载
- 积分:1