登录
首页 » matlab » gravity

gravity

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

  • svmsm
    SMO算法的Matlab实现,花了很大的力气才弄出来的!和大家分享!更多就在我的主页访问吧:http://huangbo929.blog.edu.cn(SMO algorithm Matlab, spent a lot of time and energy only get out! And to share with you! More on the home page I visit it : http://huangbo929.blog.edu.cn)
    2007-04-27 13:00:46下载
    积分:1
  • igig
    the strategy of simulate and modelling wind energy
    2014-11-06 21:15:06下载
    积分:1
  • Modified-lms-algorithm
    修正的lms算法,我做毕设的资料,希望对大家有帮助(Modified lms algorithm, I do complete data set, we want to help)
    2011-05-15 20:28:59下载
    积分:1
  • FFT-harmonic-Matlab-
    从Excel表中读取数据,然后分析其频谱、相谱和总谐波畸变率,并画出图(plot)。(Read data from an Excel table, and then analyze its spectrum, phase spectrum and total harmonic distortion rate, and draw the diagram (plot).)
    2013-05-13 11:45:07下载
    积分:1
  • chi2test
    给定一批的样本,当然这些样本间必须相互独立。如果Q > chi2(p, nu),假设拒绝,否则通过。 ARGUMENTS: x Absolut numbers. p The prob ability value, calculated from Q. Q The resulting Q-value.(A given batch of samples, of course, among these samples must be independent of each other. If Q> chi2 (p, nu), the assumption that refuse, or else through. ARGUMENTS: x Absolut numbers. P The prob ability value, calculated from Q. Q The resulting Q-value.)
    2009-05-20 14:40:02下载
    积分:1
  • stability
    In any power system, stability is always a important parameter. To check the stability of a synchronous generator which is connected with the grid is the power angle and freq need to know. With the help of this simulation model one can easily find Power angle and Freq.
    2011-02-03 23:07:55下载
    积分:1
  • matlab-target-tracking
    很好用的几个matlab多目标视频跟踪的程序,有粒子滤波的,帧差法的等等,可以直接仿真运行(Good use of several multi-target video tracking matlab procedures, particle filter, frame difference method, etc., can be directly run the simulation)
    2013-09-21 15:35:11下载
    积分:1
  • MATLAB_WordaExcel
    matlab的学习资料,从最基础开始,逐步走进编程世界(Matlab learning materials, the most basic start, gradually into the programming world)
    2015-04-15 11:01:23下载
    积分:1
  • ChaoticSystemsToolbox
    混沌动力学实例仿真,采用MATLB可以用作研究动力学学习使用(Chaotic dynamics simulation using MATLB can be used to study learning dynamics)
    2007-11-15 01:10:02下载
    积分:1
  • CS_OMP
    cs的omp恢复算法,使用恢复矩阵,观测矩阵(The physics of compressive sensing (CS) and the gradient-based recovery algorithms are presented. First, the di® erent forms for CS are summarized. Second, the physical meanings of coherence and measurement are given. Third, the gradient-based recovery algorithms and their geometry explanations are provided. Finally, we conclude the report and give some suggestion for future work.)
    2012-03-30 20:54:16下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载