祝您一生平安 发表于 2008-11-27 19:10

MATLAB绘长方体

请教一下哪位高手指点一二:如何用MATLAB编程画出一个长方体表面的声辐射图形,该长方体6个面上各点的法向振动速度不一样?

ch_j1985 发表于 2008-11-27 21:25

回复 楼主 祝您一生平安 的帖子

没有背景知识,要解决问题估计很难……

祝您一生平安 发表于 2008-11-27 21:50

回复 沙发 ch_j1985 的帖子

谢谢,能否给出画长方体的程序

ch_j1985 发表于 2008-11-27 23:25

回复 板凳 祝您一生平安 的帖子

LZ可以根据长方体各边的尺寸来画,这个应该不难
如果Matlab有直接画长方体的命令,那就再好不过啦

friendchj 发表于 2008-11-28 09:25

help Multifaceted Patches

花如月 发表于 2008-11-28 13:51

=meshgrid(0:.05:1,0:.05:2,0:.05:1.5);
      fun=(x+y+z)/3;%
      slice(x,y,z,fun,0:.05:1,0:.05:2,0:.05:1.5);
      colorbar, axis equal
http://forum.vibunion.com/forum/viewthread.php?tid=53474&highlight=%2B%BB%A8%C8%E7%D4%C2
三维基本图形的绘制,我总结过

花如月 发表于 2008-11-28 13:53

发帖子之前还是搜下比较好些,这个区之所以没有从前那么热闹
   和很多版友不动手搜索就发问有很多关系,版主们回答的次数多了也就烦了

ch_j1985 发表于 2008-11-28 23:47

回复 7楼 花如月 的帖子

终于发现标题内容的一个重要性:便于搜索!

friendchj 发表于 2008-11-29 00:09

这是由Thomas Montagnon写的一个绘制方体的程序。
DescriptionPLOTCUBE - Display a 3D-cube in the current axes

PLOTCUBE(EDGES,ORIGIN,ALPHA,COLOR) displays a 3D-cube in the current axes
with the following properties:
* EDGES : 3-elements vector that defines the length of cube edges
* ORIGIN: 3-elements vector that defines the start point of the cube
* ALPHA : scalar that defines the transparency of the cube faces (from 0
            to 1)
* COLOR : 3-elements vector that defines the faces color of the cube

Example:
>> plotcube(,[ 2 2 2],.8,);
>> plotcube(,,.8,);
>> plotcube(,,.8,);

ChaChing 发表于 2008-11-29 11:34

回复 6楼 花如月 的帖子

谢谢! 又学者了!
还有好像这样就可!?
slice(x,y,z,fun,,,);

科技在线 发表于 2008-11-30 07:41

回复 9楼 friendchj 的帖子

还你这位仁兄的直观,LZ送朵鲜花啊》

jackmobile 发表于 2008-12-1 10:13

楼上的你们怎么都有振动币送啊:lol
页: [1]
查看完整版本: MATLAB绘长方体