登录
首页 » matlab » gravity

gravity

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

  • Iclspso
    一种改进的混沌算法,结合粒子群进化进行改进(An improved chaotic particle algorithm to improve the diversity of PSO)
    2020-07-01 04:40:02下载
    积分:1
  • STBC-MIMO-OFDM
    写论文找的STBC-MIMO-OFDM系统仿真程序(STBC-MIMO-OFDM system simulation program for writing paper)
    2021-02-19 17:59:44下载
    积分:1
  • fuzzy-clustering
    用matlabr2009编程实现神经网络模糊聚类算法,采用cell工具把整个程序分为以下几个部分(Programming neural network with matlabr2009 fuzzy clustering algorithm, using cell tools to the entire program is divided into the following sections)
    2011-06-30 08:28:29下载
    积分:1
  • f_enframe
    make frame(window) data
    2016-03-14 20:45:26下载
    积分:1
  • newCNC2
    G-code生成器,在matlab中使用,模拟数控加工,用于生成G代码(G-code Generator can be used in Matlab to simulate computerize-numberal-control process and generate general G code.)
    2018-03-17 17:51:55下载
    积分:1
  • RLS
    本程序用于普通递推最小二乘算法在MATLAB下的仿真,为C程序。(This procedure is for the ordinary recursive least squares algorithm in MATLAB simulation, the C program.)
    2012-04-26 10:44:51下载
    积分:1
  • x_svdprony
    电力系统低频振荡分析用的prony代码,功能全,实用(prony precess of low-frequency oscillation)
    2011-06-24 20:54:59下载
    积分:1
  • PMSM
    永磁同步电机的在各种仿真,均可运行,m文件和simulink文件都有。(Permanent magnet synchronous motors in a variety of simulation can be run, m files and simulink files have.)
    2011-07-26 09:13:52下载
    积分:1
  • TDOAAOA
    TDOAAOA定位的扩展卡尔曼滤波定位算法(Positioning TDOAAOA extended Kalman filter algorithm)
    2008-05-16 15:28:47下载
    积分:1
  • DLTcode
    针对图片或视频数据的眼睛区域的检测,以及眨眼的检测确定人脸区域的程序。 份关于智能图像增强的美国专利,对图像处理感兴趣的朋友可以看一下。(Tracking learning)
    2013-11-26 14:17:49下载
    积分:1
  • 696516资源总数
  • 106425会员总数
  • 12今日下载