登录
首页 » matlab » gravity

gravity

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

  • ctrllab3.0
    很优良的PID控制器设计仿真程序与模型,经过严格检验(Very good simulation of PID controller design procedures and models, to undergo a rigorous inspection)
    2008-05-21 16:23:58下载
    积分:1
  • loclization-code
    enhanced mapping algorith for loclaization and mapping problem
    2013-07-28 06:14:49下载
    积分:1
  • X5
    matlab编写的局部轨道不平顺,交点型轨道不平顺的(垂向,水平,方向,轨距不平顺)。(matlab prepared local irregularity, intersection type track irregularity (vertical, horizontal, direction, gauge irregularity).)
    2021-03-16 16:49:21下载
    积分:1
  • barbar
    在matlab下绘制三维柱状图,并且每根柱子用不同的颜色来显示成员的大小。在某种意义上,四维的显示(Under the three-dimensional drawing in matlab histogram, and each column with different colors to show the size of the members. In a sense, the four-dimensional display)
    2008-01-10 23:27:06下载
    积分:1
  • 95302923zuixiaoercheng2
    在盲辨识系统中,非常关键的是如何获得最好的辨识效果,这里采用了多种方法,通过系统建模,并比较方法(In blind identification system is critical to identify how to get the best effect, this uses a variety of ways, through system modeling, and comparison)
    2010-12-28 11:07:37下载
    积分:1
  • simstruc_types
    simulink应用实例,基于MATLAB6.5系列(Simulink application examples, based on a series of MATLAB6.5)
    2007-05-04 09:44:56下载
    积分:1
  • outputdsSVI
    example code Pca for sludge digester
    2012-06-02 17:52:06下载
    积分:1
  • CG_ex
    共轭梯度发法matlab版本的一个实例源代码,带轨迹收敛图(a source code of conjugate gradient algorithm by matlab )
    2013-10-27 16:47:48下载
    积分:1
  • AR_MED_filter
    说明:  AR-MED 滤波,可用于轴承故障诊断,齿轮故障诊断(AR-MED filter for bearings fault diagnosis)
    2020-10-30 21:19:56下载
    积分:1
  • matlab
    教程 全程掌握。对于初学者来说是非常好的工具。(Master the whole course. For beginners it is a very good tool.)
    2009-06-30 10:07:30下载
    积分:1
  • 696518资源总数
  • 106235会员总数
  • 12今日下载