【1】ezimplot3 存储该M文件,并将文件路径设置为matlab当前路径

function h = ezimplot3(fun,domain,n,color)

% EZIMPLOT3    Easy to use 3D implicit plotter.

%   EZIMPLOT3(FUN) plots the inline function FUN(X,Y,Z) = 0 over the

%   default domain -2*PI < X < 2*PI, -2*PI < Y < 2*PI, -2*PI < Z < 2*PI.

%

%   EZIMPLOT3(FUN,DOMAIN)plots FUN over the specified DOMAIN instead of the

%   default domain. DOMAIN can be the vector [XMIN,XMAX,YMIN,YMAX,ZMIN,ZMAX]

%   or the vector [A,B] (to plot over A < X < B, A < Y < B, A < Z < B).

%

%   EZIMPLOT3(...,N) plots FUN over the default domain using an N-by-N grid.

%   The default value for N is 60.

%

% Example

% Plot x^3+exp(y)-cosh(z)=4

%

% via a string: f='x^3+exp(y)-cosh(z)-4'

% ezimplot3(f)

%

% via a vectorized function handle: f = @(x,y,z) x.^3+exp(y)-cosh(z)-4

% ezimplot3(f)

%

% Note: this function do not use the ezgraph3 standard, like ezsurf, ezmesh

% ,etc, does. Because of that, ezimplot3 only tries to imitate that

% interface. A future work must be to modify the ezgraph3 to include a

% routine for implicit surfaces based on this file

%

%   Inspired by works of:   A.Jutan     UWO 02-02-98 ajutan@julian.uwo.ca

%   Made by:                G.Morales   UC  03-20-09 gmorales@uc.edu.ve

%

if nargin == 1

domain = [-2*pi, 2*pi];             % default domain: -2*pi < xi < 2*pi

n = 60;                             % default grid size

elseif nargin == 2

n = 60;                             % just default grid

end

if  size(domain,2) == 2

domain = repmat(domain,1,3);        %domain repeated in all variables

end

xm = linspace(domain(1), domain(2), n); % generating the volume data

ym = linspace(domain(3), domain(4), n);

zm = linspace(domain(5), domain(6), n);

[x,y,z] = meshgrid(xm, ym, zm);

if ischar(fun)

fun = inline(vectorize(fun)); % making sure string "fun" is vectorized

fvalues = feval(fun,x,y,z);         % evaluating "fun" in domain

elseif isa(fun,'function_handle')

fvalues = fun(x,y,z);               % evaluating "fun" in domain

fun = char(fun); fun = fun(9:end);  % pre-formatting of graph title

end

h = patch(isosurface(x,y,z, fvalues, 0)); %"patch" handles the structure

%sent by "isosurface"

isonormals(x,y,z,fvalues,h) %Recalculating the isosurface normals based on

%the volume data

set(h,'FaceColor','red','EdgeColor','none');

xlabel('x');ylabel('y');zlabel('z');% naming the axis

alpha(0.8) % adjusting for some transparency

grid on

view(3)

axis equal

camlight

lighting gouraud

title([strrep(char(fun),'.','') ' = 0']); % graph title without "."

【2】在matlab命令窗口中输入

f='x-y*(y+1)*(z^(-2)-z^(-8))*x^2+(y+1)^2*(z^2-z^(-4))^3/100'

这里c我给取了10,所以c^2=100

matlab画三维函数参数方程,如何在matlab中绘制含有三个参数方程的三维图形相关推荐

  1. xmind可以画流程图吗_如何在XMind 中绘制流程图?

    XMind 是专业强大的思维导图软件,由于其结构没有任何限制,很多朋友特别喜欢用它来绘制流程图.那么,就出现这样一个问题,如何在 XMind 中绘制流程图?下面就和小编一起来看看吧! 如何在 XMin ...

  2. Matlab画圆方向图,如何在matlab里画天线的立体方向图?

    如何在matlab里画天线的立体方向图?有没有具体的函数? 有的,你看下一般的matlab教程里都有着方面的介绍,查一下就可以了 有数据,Matlab可以画 归根到底,画极坐标方向图是坐标变换的问题. ...

  3. python中画logistic函数_如何在Python中计算logistic-sigmoid函数?

    In [1]: from scipy.stats import logistic In [2]: logistic.cdf(0.458) Out[2]: 0.61253961344091512 这只是 ...

  4. matlab怎么画三维坐标的二维图,excel怎么画二维坐标表格图(如何在excel中绘制三维坐标系?)...

    在excle中怎么把二维图形变成三维图形 你说的是图表吗,如果是的话就这样操作 excel2007以上版本:选中图表-点击设计选项卡-最左面有更改图表类型-选择合适的类型-确定 excel2003也是 ...

  5. matlab 三维y轴平面图,#如何在excel中绘制三维坐标系?#excel怎么画图平面坐标图...

    用excel绘制曲线图时如何进行坐标轴转换 点"插入"->"图表"->"XY图","子图表类型"选择&quo ...

  6. 用matlab画出典型函数,如何用matlab画出函数曲线

    使用matlab绘制函数曲2113线的方法和操作步5261骤如下:1.首先,使用matlabc打开命令行窗口,然后4102直接输入相1653关内容,如下图所示.2.其次,完成上述步骤后,请根据实际情况 ...

  7. matlab贝塞尔函数的根,matlab画贝塞尔函数根分布的曲线图.doc

    matlab画贝塞尔函数根分布的曲线图.doc 主程序:clcclearw=0:0.1:12;y0=Besselj(0,w);y1=Besselj(1,w);y2=Besselj(2,w);plot( ...

  8. matlab贝塞尔函数的根,matlab画贝塞尔函数根分布的曲线图

    matlab画贝塞尔函数根分布的曲线图 精品资料 欢迎下载 主程序: clc clear w=0:0.1:12; y0=Besselj(0,w); y1=Besselj(1,w); y2=Bessel ...

  9. matlab 画狗头彩蛋,我用matlab画制动力分配曲线,求程序代码

    matlab画函数曲线 c = 3.00e8;h = 6.63e-34;k = 1.38e-23;lambda = (1:10:5000).*1e-9; figure(1)subplot(2,1,1) ...

最新文章

  1. Python查找相同元素,不同元素
  2. 【9】青龙面板系列教程之互助规则的配置
  3. Adobe Lifecycle ES的安装截图
  4. php获取服务器名称,PHP 获取服务器详细信息
  5. 有关emoji表情以及utf-16编码
  6. 5G/NR 学习笔记:波束赋形 / beam 管理
  7. unity ab包加载_Unity资源管理和打包
  8. 如何绘制平台框架的设计图:使用UML工具
  9. Bailian4117 简单的整数划分问题【整数划分+记忆化递归】
  10. (十二)Linux内核驱动之poll和select
  11. 事务失败返回_分布式事务方案 TCC
  12. 放慢你的额脚步_放慢脚步使我成为更好的领导者
  13. Linux系统配置(shell函数与数组)
  14. 微信公众号文章信息(阅读量、在看、点赞数)获取
  15. sentinel流量卫兵组件学习
  16. Ubuntu下安装PCL1.12.1点云库经验分享
  17. sed删除代码空行和删去行尾空白
  18. 20160202.CCPP体系详解(0012天)
  19. 2020 中国软件 100 强,腾讯第二、阿里第三,第一是谁呢?你们公司上榜了吗?...
  20. javascript百炼成仙 第一章 掌握JavaScript基础1.5基础考核

热门文章

  1. 如何建word文档目录时,自动生成的目录正文从第一页开始
  2. 万网 mysql_删除万网锋云主机默认Apache与MySQL_MySQL
  3. 【托业】新托业全真题库---TEST1
  4. Ultra96基础学习篇——(3)Ultra96教程01—04
  5. 笨鸟的平凡之路-win10虚拟机安装MAC OS
  6. 基于InceptionV3深度学习实现岩石图像智能识别与分类
  7. React项目创建以及结构
  8. 优必选服务机器人自然语言处理技术
  9. SGMII接口与光模块的组合
  10. 有什么手机提词软件可以悬浮窗口?