-
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
-
power_pmmotor2
svpwmsvpwm power through matlab mathed(svpwm power through matlab mathed)
- 2012-05-26 17:30:04下载
- 积分:1
-
fdtd1D
This MATLAB M-file implements a finite-difference time-domain solution of Maxwell s curl equations over a one-dimensional space lattice comprised of uniform grid cells.
To illustrate the algorithm, a 1-GHz sinusoidal wave propagating in a nonpermeable lossy medium (epsr=1.0, sigma=5.0e-3 S/m) is modeled. The simplified finite difference system for nonpermeable.
- 2013-08-29 21:25:21下载
- 积分:1
-
3bit-spatial-modulation
当空间调制(sm)系统中每个符号含有3bits信息(即3bit/s/Hz的频谱利用率)时我们选择:4根发送天线,BPSK调制方式和2根发送天线,4QAM调制方式进行比较。(When the spatial modulation (sm) system, each symbol comprising 3bits information (i.e. 3bit/s/Hz spectral efficiency) when we choose: four transmitting antennas, BPSK modulation method and two transmission antennas, 4QAM modulation for comparison.)
- 2013-08-27 17:51:35下载
- 积分:1
-
679-2109-1-PB
SRM dynamic simulation of srm.
- 2014-02-03 01:58:44下载
- 积分:1
-
移动机器人跟踪控制的模糊算法mobile-robot
fuzzy alghorithm for mobile robot tracking control
- 2020-07-06 00:18:58下载
- 积分:1
-
matlabhanshu
matlab一些常用的函数,对初学者有重要的参考价值(matlab some commonly used functions, for beginners has important reference value)
- 2013-06-05 14:16:47下载
- 积分:1
-
c_matlab
一个进行C++和matlab混合编程的程序,可以实现c++调用matlab,虽是一个简单的例子但是却会让你学会VC、matlab混合编程的强大(One for C++ and matlab mixed programming procedures can be achieved c++ calling matlab, although a simple example but it makes you learn to VC, matlab powerful Hybrid Programming)
- 2009-10-02 17:12:00下载
- 积分:1
-
weisuijixulie
实现伪随机序列 关键词 随机矩阵 本源多项式 移位运算(Achieve the pseudo-random sequence Key words random matrix origin polynomial shift operator)
- 2009-11-09 18:39:46下载
- 积分:1
-
BLDC1
UN PROGRAMM DE BRUSHLESS DC MOTOR IN M FILE PART 1
- 2012-09-03 00:47:49下载
- 积分:1