当前位置:网站首页>捡起MATLAB的第(6)天
捡起MATLAB的第(6)天
2022-04-23 15:54:00 【Sola_Ex】
Matlab
三维曲线绘制
plot3(x,y,z,s)
plot3(x1,y1,z1,s1,x2,y2,z2,s2)
三维曲面绘制
mesh(x,y,z,c) %绘制三维网格图
surf(x,y,z,c) %绘制三维曲面图
注:c是color(颜色)
meshc(x,y,z,c) %绘制三维网格图(带等高线)
meshz(x,y,z,c) %绘制三维网格图(带底座)
标准三维球面绘制
[x,y,z] = sphere(n) %绘制三维球面
%体现的是圆滑程度,n越大越圆滑
[x,y,z] = cylinder(r,n) %绘制三维柱面
特殊三维图形
pie3(x) %绘制三维饼图
pie3(x,explode) %绘制三维饼图
fill3(x,y,z,c) %绘制三维填充图
注:explode是让饼块出现脱离的效果,如:
explode = [0 1 0 1] %并不是一定要叫explode ,随意起名字
pie3(x,explode)
waterfall(x,y,z) %绘制瀑布图
contour3(x,y,z,n) %绘制等高线图
这个比较有意思。
图中的波峰函数
peaks(n)
版权声明
本文为[Sola_Ex]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_42312125/article/details/107628595
边栏推荐
- gps北斗高精度卫星时间同步系统应用案例
- leetcode-396 旋转函数
- Large factory technology implementation | industry solution series tutorials
- 删除字符串中出现次数最少的字符
- Function summary of drawing object arrangement in R language
- [self entertainment] construction notes week 2
- Implement default page
- 王启亨谈Web3.0与价值互联网“通证交换”
- 一文读懂串口及各种电平信号含义
- s16.基于镜像仓库一键安装containerd脚本
猜你喜欢
随机推荐
Timing model: gated cyclic unit network (Gru)
腾讯Offer已拿,这99道算法高频面试题别漏了,80%都败在算法上
Spark 算子之distinct使用
【开源工具分享】单片机调试助手(示波/改值/日志) - LinkScope
Simple usage of dlopen / dlsym / dlclose
多级缓存使用
One brush 313 sword finger offer 06 Print linked list from end to end (E)
Use bitnami PostgreSQL docker image to quickly set up stream replication clusters
Leetcode-374 guess the size of the number
幂等性的处理
提取不重复的整数
Upgrade MySQL 5.1 to 5.66
Extract non duplicate integers
Unity shader learning
多生成树MSTP的配置
Application case of GPS Beidou high precision satellite time synchronization system
实现缺省页面
Go language, array, pointer, structure
Named in pytoch_ parameters、named_ children、named_ Modules function
dlopen/dlsym/dlclose的简单用法