MATLAB Graphics -Surface 绘图

本文介绍了MATLAB中的图形绘制,特别是3D数据的线图、网格图和曲面图的创建。从基本词汇如plot、surface、mesh到颜色和区域概念,再到绘制步骤和具体类型的3D图解,全面解析MATLAB图形绘制技术。
摘要由CSDN通过智能技术生成

1.Vocabulary:

  • plot 绘图
  • surface 曲面
  • mesh 网格
  • grid 格子
  • illustrate 图解
  • region 区域
  • polygon 多边形
  • peak 顶点
  • tick 记号
  • helix 螺旋
  • magenta 洋红色
  • cyan 青色
  • gray 灰色
  • aquamarine碧绿色

2.一般步骤

Z = peaks(20); % 1. Prepare your data.
figure(1) % 2.Select window and position plot region within window.
subplot(2,1,2)
h = surf(Z); % 3.Call 3-D graphing function.
colormap hot % 4.Set colormap and shading algorithm.
shading interp
set(h,'EdgeColor','k')
light('Position',[-2,2,20])  %5.Add lighting.
lighting phong
material([0.4,0.6,0.5,30])
set(h,'FaceColor',[0.7 0.7 0],'BackFaceLighting','lit') 
view([30,25]</
  • 2
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值