求助用matlab画三维图

x=[0.7,0.75,0.8,0.85,0.9];x取这5个数y=[0.03,0.04,0.05,0.06,0.07];y取这5个数z=[9.5869,9.8443,9... x=[0.7,0.75,0.8,0.85,0.9]; x取这5个数
y=[0.03,0.04,0.05,0.06,0.07]; y取这5个数
z=[9.5869,9.8443,9.6682,9.4436,9.6937;
9.6794,9.4763,9.2275,9.2439,9.5396;
9.6342,9.6472,9.7845,9.4961,9.2596;
9.5531,9.5781,9.4625,9.6549,9.4775;
9.0017,9.6543,9.5531,9.3018,9.6387]; 当x=0.7,y=0.03时候z=9.5869;x=0.7,y=0.04时z=9.8443一次类推,这样画一个三维图。谢谢啦
展开
 我来答
闲庭信步mI5GA
推荐于2016-06-29 · TA获得超过9091个赞
知道大有可为答主
回答量:2979
采纳率:87%
帮助的人:1423万
展开全部

> x=[0.7,0.75,0.8,0.85,0.9];   

y=[0.03,0.04,0.05,0.06,0.07]; 

z=[9.5869,9.8443,9.6682,9.4436,9.6937;

    9.6794,9.4763,9.2275,9.2439,9.5396;

    9.6342,9.6472,9.7845,9.4961,9.2596;

    9.5531,9.5781,9.4625,9.6549,9.4775;

    9.0017,9.6543,9.5531,9.3018,9.6387]; 

>> [X,Y]=meshgrid(x,y)


X =


    0.7000    0.7500    0.8000    0.8500    0.9000

    0.7000    0.7500    0.8000    0.8500    0.9000

    0.7000    0.7500    0.8000    0.8500    0.9000

    0.7000    0.7500    0.8000    0.8500    0.9000

    0.7000    0.7500    0.8000    0.8500    0.9000



Y =


    0.0300    0.0300    0.0300    0.0300    0.0300

    0.0400    0.0400    0.0400    0.0400    0.0400

    0.0500    0.0500    0.0500    0.0500    0.0500

    0.0600    0.0600    0.0600    0.0600    0.0600

    0.0700    0.0700    0.0700    0.0700    0.0700


surf(X,Y,z)  %做三维曲面图。

追问
就是画出的图不带颜色可以吗?(x和y要写成矩阵,而且要对应z,这个已经ok啦!)谢谢啊
追答
先用[X,Y]=meshgrid(x,y)构造平面网格矩阵
再用mesh(X,Y,z) %做三维网格图就可以了。
张钨与勃风日887
2014-05-23 · 超过57用户采纳过TA的回答
知道答主
回答量:191
采纳率:0%
帮助的人:57.7万
展开全部
ezmesh('(x+y)/(x-y)');
追问
额,看不懂什么意思,才接触MATLAB
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式