登录
首页 » matlab » gravity

gravity

于 2013-03-20 发布 文件大小:284KB
0 258
下载积分: 1 下载次数: 11

代码说明:

  function dg=gplus(x,y,z,x1,x2,y1,y2,z1,z2,p) G=6.67e-11 t222=myfun(x,y,z,x2,y2,z2) t122=myfun(x,y,z,x1,y2,z2) t212=myfun(x,y,z,x2,y1,z2) t221=myfun(x,y,z,x2,y2,z1) t211=myfun(x,y,z,x2,y1,z1) t121=myfun(x,y,z,x1,y2,z1) t112=myfun(x,y,z,x1,y1,z2) t111=myfun(x,y,z,x1,y1,z1) dg=-G*p*1e6*(t222-t122-t212-t221+t211+t121+t112-t111) 转化为g.u. function y=myfun(x,y,z,xi,eta,zeta) R=sqrt((xi-x).^2+(eta-y).^2+(zeta-z).^2) temp1=(xi-x).*log((eta-y)+R) temp2=(eta-y).*log((xi-x)+R) temp3=(zeta-z).*atan((zeta-z).*R/((xi-x).*(eta-y))) 书中所给公式 temp3=-(zeta-z).*atan((xi-x).*(eta-y)./(zeta-z)./R) 上式变换 y=temp1+temp2+temp3 (function dg = gplus (x, y, z, x1, x2, y1, y2, z1, z2, p) G = 6.67e-11 t222 = myfun (x, y, z, x2, y2, z2) t122 = myfun (x, y, z, x1, y2, z2) t212 = myfun (x, y, z, x2, y1, z2) t221 = myfun (x, y, z, x2, y2, z1) t211 = myfun (x, y, z, x2, y1, z1) t121 = myfun (x, y, z, x1, y2, z1) t112 = myfun (x, y, z, x1, y1, z2) t111 = myfun (x, y, z, x1, y1, z1) dg =-G* p* 1e6* (t222-t122-t212-t221+t211+t121+t112-t111) converted the Gu function y = myfun, (x y, z, xi, eta, zeta) R = sqrt ((xi-x). ^ 2+ (eta-y). ^ 2+ (zeta-z). ^ 2) temp1 = (xi-x).* log ((eta-y)+R) temp2 = (eta-y).* log ((xi-x)+R) temp3 = (zeta-z).* atan ((zeta-z).* R/( (xi-x).* (eta-y))) book given formula Temp3 =- (Zeta-z)* ATAN ((Xi-X)* (ETA-y)/(Zeta- Z)/R) the above formula transform Y = temp1+temp2+temp3 )

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • faz_delay
    a phase delay code, a matlab source code
    2009-12-10 21:11:36下载
    积分:1
  • tpol
    利用BP神经网络预测幸运28。这种方法的预测(在一定容许范围内)精度保持在40 左右(BP neural network to predict the use of lucky 28. This method of forecasting (within a certain range to allow) the accuracy remained at 40 )
    2009-07-14 16:47:59下载
    积分:1
  • matlab_neural_3RBF
    RBF神经网络的MATLAB源码。供大家学习使用,希望有所帮助。(RBF neural network MATLAB source code. For everyone learning to use the hope that help.)
    2010-03-11 09:52:23下载
    积分:1
  • gray-threshold
    matlab中灰色阈值元程序 初学者可能很有用 (gray threshold element program matlab beginners might be useful)
    2012-09-03 14:57:49下载
    积分:1
  • 2D_acoustic_FDFD_PMLs
    说明:  pml吸收便捷的声波方程有限差分数值模拟,采用MATLAB编程,具体注释见文件夹(Finite difference numerical simulation of acoustic equation)
    2020-04-07 10:25:30下载
    积分:1
  • analytical2
    由2个麦克风组成的麦克风阵列,画出它的方向图(Microphone arrays of the two microphones, shown in Fig its direction)
    2014-01-15 19:43:35下载
    积分:1
  • hypot
    抛物线法求解 方程的构造方法:给出[0,1]区间上的随机数(服从均匀分布)作为方程的根p*. 设你的班级数为a3,学号的后两位数分别为a2与a1,从而得到你的三次方程 例如:你的31班的12号,则你的方程是21x3+60x2+2x+a0=0的形式. 方程中的系数a0由你得到的根p*来确定.(parabolic equation method Construction Methods : given interval [0,1] on the random number (subject to uniform distribution) as the root equation p*. set up your classes at a3, after learning of the double-digit for a1 and a2, so you get the three equations for example : your 31 classes on the 12th, then your equation is 21x3 60x2 2x a0 = 0 forms. the equation coefficients a0 you get from the root of p* to determine.)
    2014-04-25 08:18:59下载
    积分:1
  • psk
    仿真8-PSK载波调制信号在AWGN信道下的误码率和误比特率性能,并与理论值相比较。(Under the simulation 8-PSK carrier modulation signal s and harms the bit rate performance in AWGN channel error rate, and compares with the theoretical value.)
    2012-04-18 15:53:47下载
    积分:1
  • pedulum_pp
    一级倒立摆的pp算法,simulink文件(An inverted pendulum pp algorithm, simulink file)
    2011-10-02 18:30:32下载
    积分:1
  • voicebox
    MATLAB语音处理的函数工具箱,为语音处理提供基本函数(MATLAB toolbox voice processing functions, provide basic functions for the voice processing)
    2010-05-14 16:27:52下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载