登录
首页 » matlab » gravity

gravity

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

  • lisantu
    MATLAB离散散点图和回归曲线图,非常好用,附有注释(MATLAB discrete scatter plot and regression curves, very easy to use, with comments)
    2014-09-04 11:25:19下载
    积分:1
  • SVPWM_for_ACmotor
    介绍了空间电压矢量调制异步电动机控制系统的资料,对做此方面的人员有较大的帮助。(Describes the space voltage vector modulation induction motor control system data, and to do this in a larger staff to help.)
    2011-11-03 19:17:24下载
    积分:1
  • power_tcsc
    晶闸管控制串联电阻在500kv电力系统的matlab仿真中的应用。(Modeling and simulation of 500kv power system.The theoretical ground and design realization of alternating current power lines of the new type- Controllable Flexible A.C. Transmission Systems (CFACTS) are considered. Earlier lines of such type had been known as Controlled Self- Compensating High Voltage Transmission Power Lines (CSHVL), as well as Controlled Compact Transmission Power Lines. The CFACTS design principles and the basic CFACTS design directions are implemented. The basic characteristics of CFACTS (500kV) which are studying have great prospects. CFACTS(10, 35, 110 kV) which already built and maintained. )
    2013-11-15 12:52:34下载
    积分:1
  • 38713174avoidlist.sln
    说明:  人工势场法程序代码,用matlab编写,简单易懂(the code,you can use it to set the obstale imformation ,the length and so on)
    2019-06-27 10:50:52下载
    积分:1
  • MATLAB
    说明:  我的matlab实验 MATLAB运算基础 选择结构程序设计 循环结构程序设计 函数文件 高层绘图操作 数据处理与多项式计算 数值微积分与方程数值求解 符号计算基础与符号微积分(My matlab choice experiment based on the structure MATLAB programming operations structured programming cycle function file data processing and high-level drawing operations polynomial equation calculated with numerical integration and numerical solution based on symbolic computation and symbol calculus)
    2011-03-04 10:23:01下载
    积分:1
  • lpcauto
    matlab编写,语音处理中求LPC系数的自相关程序(Matlab prepared speech processing for LPC coefficients of the relevant procedures)
    2007-03-28 21:16:26下载
    积分:1
  • dvhop
    wireless sensor network localization estimation using distance vector one hop
    2015-02-24 17:09:13下载
    积分:1
  • intelligent-algorithm11-15examples
    matlab 智能算法30个案例分析11-15例的代码(intelligent algorithm matlab analysis of 30 cases, 11-15 cases of code)
    2011-11-01 21:30:41下载
    积分:1
  • PIDControlDCMotor
    PID Controller Design for a DC Motor
    2013-11-12 14:33:11下载
    积分:1
  • CCS2.20Fir
    ccs中产生正弦和余弦相加的混合,使用fir滤波得到低频的正弦。滤波器系数由matlab计算。有文档(ccs generated sine and cosine mixed together, the use of low-frequency filtering fir Sine. Filter coefficients calculated by Matlab. Documented)
    2007-06-29 15:13:49下载
    积分:1
  • 696519资源总数
  • 104213会员总数
  • 20今日下载