画多个立方体组成的正方体

  1. tick=linspace(-1,1,3);
  2. [x,y,z]=meshgrid(tick);
  3. h=slice(x,y,z,z,tick,tick,tick);
  4. set(h,'FaceColor','none','Marker','o','MarkerFaceColor','y')
  5. axis off
  6. view(15,12)
posted @ 2018-07-19 15:27  yongbin-H  阅读(538)  评论(1编辑  收藏  举报