登录
首页 » matlab » gravity

gravity

于 2013-03-20 发布 文件大小:284KB
0 179
下载积分: 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 个回复

  • summ
    Function analogous to DIFF, but takes sums instead.
    2009-09-07 17:41:13下载
    积分:1
  • chaoliu
    运用压科比矩阵的电力系统潮流计算程序。matlab编程。(Flow calculation)
    2012-05-04 11:59:57下载
    积分:1
  • bayes
    用matlab的bayes方法实现系统辨识(Bayes methods using matlab realize the system identification)
    2007-10-24 10:56:32下载
    积分:1
  • patch
    利用HFSS-MATLAB-API编写的程序,该程序可以生成一个同轴馈电的贴片天线的vbs脚本程序,并和hfss软件自动连接,算出该天线的S11参数。(HFSS-MATLAB-API programs written in the program can generate a coaxial fed patch antenna vbs script to automatically connect and hfss software, calculated S11 parameter of the antenna.)
    2013-03-02 11:45:24下载
    积分:1
  • k_keyboard
    keyboard user input control
    2013-03-09 17:49:19下载
    积分:1
  • plotrect
    This function plot a series of rects described from the N columns of a matrix 4xN, each column is of the form [x,y,w,h]
    2010-07-22 17:06:40下载
    积分:1
  • huise
    灰色系统预测源代码,本人亲自试过可用,为什么一定要20个字呢(Grey forecasting the source code )
    2012-03-22 16:45:38下载
    积分:1
  • WignerVille
    计算信号的魏格纳分布。 用法见函数说明。(Calculate the signal Wigner. Usage See function description.)
    2013-07-25 23:36:26下载
    积分:1
  • nonnegLOne
    sparse representation
    2011-06-17 04:44:13下载
    积分:1
  • 基于非相干信号子空间(ISM)的宽带源DOA估计方法
    说明:  基于非相干信号字空间宽带源DOA估计方法,代码可运行(The matlab code is the DOA estimation for wide-band signals by ISM. It works well.)
    2021-05-16 15:30:02下载
    积分:1
  • 696518资源总数
  • 105547会员总数
  • 4今日下载