-
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
-
c10_MCQPSKrun
通信系统防真,用matlab编写,MCQPSK(communication system simulation by matlab,MCQPSK)
- 2005-08-19 11:41:54下载
- 积分:1
-
Chapter-6
elshebri source code5
- 2011-07-14 01:40:45下载
- 积分:1
-
gtt
PCMA律13折线编码器matlab源程序(Law 13 PCMA codec matlab source code line)
- 2010-11-23 10:20:09下载
- 积分:1
-
Powerflow
说明: 在matpower的基础上改动的、比较好的一个潮流计算程序!(Matpower the basis of the changes, a trend of a better program!)
- 2008-10-28 16:43:45下载
- 积分:1
-
changweifen
说明: 几个matlab解常微分方程的例子:验证齐次方程有形如1/(xM+yN)的积分因子;全微分方程;求方程的显式解和绘图;解出x的隐方程的解法;方程的隐式解(Several examples of matlab Ordinary Differential Equations: Homogeneous Equation physical verification, such as 1/(xM+ yN) of the integral factor the whole equation the explicit solution of Equation and drawings solve the implicit equation x Solution equation the implicit solution)
- 2011-04-17 11:48:14下载
- 积分:1
-
Serial_Port_Rx
A code used to write data from matlab to the serial port
- 2011-10-14 20:46:35下载
- 积分:1
-
shetab-giri
induction motor accelerating
- 2014-12-07 23:14:50下载
- 积分:1
-
blobtrack
opencv自带的跟踪框架程序,方便开发者开发出能够自动检测前景、目标跟踪的算法程序(Opencv own tracking framework application, convenient and developers to develop to be able to automatically detect prospects, the algorithm of target tracking application )
- 2014-12-24 15:43:27下载
- 积分:1
-
LDPC_Fading_AWGN
LDPC code simulacation
- 2015-01-03 22:30:21下载
- 积分:1