zoukankan      html  css  js  c++  java
  • Generate Ellipsoid画椭球用MATLAB

    Generate Ellipsoid画椭球用MATLAB  

    Ref:http://www.mathworks.com/help/techdoc/ref/ellipsoid.html

    ellipsoid - Generate ellipsoid

    Example of rgbplot function output

    Syntax

    [x,y,z] = ellipsoid(xc,yc,zc,xr,yr,zr,n)
    [x,y,z] = ellipsoid(xc,yc,zc,xr,yr,zr)
    ellipsoid(axes_handle,...)
    ellipsoid(...)

    Description

    [x,y,z] = ellipsoid(xc,yc,zc,xr,yr,zr,n) generates a surface mesh described by three n+1-by-n+1 matrices, enabling surf(x,y,z) to plot an ellipsoid with center (xc,yc,zc) and semi-axis lengths (xr,yr,zr).

    [x,y,z] = ellipsoid(xc,yc,zc,xr,yr,zr) uses n = 20.

    ellipsoid(axes_handle,...) plots into the axes with handle axes_handle instead of the current axes (gca).

    ellipsoid(...) with no output arguments plots the ellipsoid as a surface.

    Algorithms

    ellipsoid generates the data using the following equation:

    Note that ellipsoid(0,0,0, .5,.5,.5) is equivalent to a unit sphere.

    Examples

    Generate ellipsoid with size and proportions of a standard U.S. football:

    [x, y, z] = ellipsoid(0,0,0,5.9,3.25,3.25,30); surfl(x, y, z) colormap copper axis equal

  • 相关阅读:
    POJ 1320 Street Numbers(佩尔方程)
    hdu 3292 No more tricks, Mr Nanguo
    佩尔方程
    hdu 4825 xor sum(字典树+位运算)
    Xor Sum 2(位运算)
    数串
    EJS
    JQuery性能优化
    常用正则
    JavaScript prototype继承中的问题
  • 原文地址:https://www.cnblogs.com/zdcaolei/p/2405282.html
Copyright © 2011-2022 走看看