-
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
-
matlab1
颜色类型转换,GRB与HSI,并将H加30度(Color conversion, GRB with HSI)
- 2009-06-22 12:21:34下载
- 积分:1
-
wmark
说明: 用matlab实现的水印嵌入,附水印图像和源码文件(Embedding with a matlab implementation, with a watermark image and the source file)
- 2011-02-17 10:40:21下载
- 积分:1
-
classify
KNN用于模式分类的很好的例子,供大家学习,希望对大家有帮助(KNN classification for a good example for all to learn. . .)
- 2011-06-15 00:29:51下载
- 积分:1
-
quadgui
该代码展示了如何通过数值方法估计某个量值的思路,方法具有新颖之处。。。望采纳(QUADGUI Demonstrate numerical evaluation of a definite integral.
Q = QUADGUI(F,A,B) shows the steps in approximating the integral
of F(x) from A to B by adaptive extrapolated Simpson s quadrature.
The shaded area shows the integral over the current subinterval.
The color switches to green when the desired accuracy is obtained.)
- 2013-10-30 15:06:48下载
- 积分:1
-
emd
经验模式分解程序(matlab)可以对输入信号进行经验模式分解(Empirical mode decomposition process (matlab))
- 2009-04-13 17:53:56下载
- 积分:1
-
proj04_02
中心化后的傅里叶谱,傅里叶频谱和平均值,计算图像的平均值(Fourier spectrum and average value)
- 2010-12-23 15:52:13下载
- 积分:1
-
isodata
isodata源码 matlab基于聚类程序的研究(isodata source code matlab)
- 2011-09-10 17:51:15下载
- 积分:1
-
levanon
PAF, PACF by levanon
- 2013-09-28 02:46:57下载
- 积分:1
-
fastsvds
A Matlab function that performs sparse singular value decomposition faster than the build in svds function.
- 2010-01-12 18:33:53下载
- 积分:1