登录
首页 » matlab » gravity

gravity

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

  • mtd
    基于MATLAB的雷达mtd滤波器设计程序(MATLAB-based radar MTD filter design procedures)
    2008-12-17 18:59:46下载
    积分:1
  • riccati
    riccati传递矩阵法算例,计算大转子的临界转速,固有频率(riccati example transfer matrix method to calculate the critical speed the greater trochanter, natural frequency)
    2010-11-15 10:18:21下载
    积分:1
  • psocode
    optimization of function by PSO
    2013-08-15 12:28:24下载
    积分:1
  • mpiv_toolbox
    本程序使用pIV方法,追踪流体的速度。使用Matlab编程,通用性强(PIV program)
    2014-12-30 17:53:54下载
    积分:1
  • pls
    这是一个介绍偏最小二乘法的Matlab的源程序,希望对大家有所帮助!(This is a partial least-squares method introduced Matlab source, I hope all of you to help!)
    2007-12-10 12:34:21下载
    积分:1
  • coreFormatIn
    核心数据处理 核心数据处理 核心数据处理 核心数据处理 核心数据处理 核心数据处理 核心数据处理(Core data-processing core data processing core data-processing core data processing core data-processing core data processing core data-processing)
    2007-12-16 07:57:35下载
    积分:1
  • mca
    详尽地介绍了sparse sensing 和morpological Componet Analysis的内容(these introduce sparse sensing and morpological Componet analysis)
    2009-12-22 10:37:50下载
    积分:1
  • dianzi_shuangfengyanshe
    GUI用户界面,通过输入缝宽、双缝间距、电子个数等参数,演示出电子双缝衍射的规律。要求: (1)由用户任意输入可调参数的界面; (2)根据电子双缝衍射的规律,得到不同入射电子数目时的衍射图像和动态演示动画; (4)模拟出观察屏上的电子双缝衍射的强度分布图样。 (GUI user interface by entering the slit width, double-slit spacing, number of parameters, to demonstrate the electronic double-slit diffraction law. Requirements: (1) any input by the user interface of adjustable parameters (2) According to the law of electronic double-slit diffraction, get a different number of incident electron diffraction images and dynamic animation (4) simulate the viewing screen on the electronic double-slit diffraction intensity distribution pattern.)
    2012-05-14 17:28:47下载
    积分:1
  • matlabrumenjingdian
    一本matlab入门书籍,通熟易懂,适合初学者。(A matlab entry books, through the familiar and easy to understand for beginners.)
    2011-11-23 14:06:10下载
    积分:1
  • xiaobobianhuan
    小波变换和用小波变换做的滤波器的Matlab源代码。(Wavelet transform and the wavelet filter Matlab source code.)
    2014-02-11 20:15:32下载
    积分:1
  • 696518资源总数
  • 104349会员总数
  • 32今日下载