当前位置:网站首页>Matlab画图1
Matlab画图1
2022-08-04 17:31:00 【万年老竹】
同时画多个函数图像
figure,plot(x1,y1);
figure,plot(x2,y2);
eg
x=-10:0.1:10;
y1=x.^2-8;
y2=exp(x);
figure,plot(x,y1);
figure,plot(x,y2);
//此时gcf与gca表示的是figure的句柄值
效果如下:

将多个函数图像放在一个窗口中
subplot(m,n,num);//m是行数,n是列数,num是第几幅图
eg:
t=0:0.1:2*pi;x=3*cos(t);
y1=sin(t);y2=2*sin(t);y3=3*sin(t);y4=4*sin(t);
subplot(2,3,1);plot(x,y1);
subplot(2,3,2);plot(x,y2);
subplot(2,3,3);plot(x,y3);
subplot(2,3,4);plot(x,y4);
效果如下 
保存图像
saveas(gcf,'<filename>','<formattype>');
位图格式
矢量图格式 
边栏推荐
- 88.(cesium之家)cesium聚合图
- Learning to Explore - Setting the Foreground Color for Fonts
- (一)、线性表的顺序存储结构链式存储结构
- el-date-picker 设置时间范围
- R语言glm函数使用频数数据构建二分类logistic回归模型,分析的输入数据为频数数据(多个分类指标对应的阴性样本和阳性样本的频数数据)、weights参数指定频数值
- yarn detailed introductory tutorial
- 小程序笔记3
- 【技术笔记】树莓派4B开机流程整理(无显示器安装)
- DSPE-PEG-DBCO,DBCO-PEG-DSPE,磷脂-聚乙二醇-二苯并环辛炔科研实验用
- 华为云计算HCIE之oceanstor仿真器的安装教程
猜你喜欢

接口测试项目(非常值得练手)

小满nestjs(第一章 介绍nestjs)

IDEA以多端口启动同一个服务项目

Flutter实战-请求封装(四)之gzip报文压缩

【LeetCode Daily Question】——374. Guess the size of the number

Learning to Explore - Setting the Foreground Color for Fonts

软件基础的理论

Learning and Exploration-Introducing Baidu Statistics to the Website

44. 通配符匹配 ●●● & HJ71 字符串通配符 ●●

DMPE-PEG-Mal,二肉豆蔻酰磷脂酰乙醇胺-聚乙二醇-马来酰亚胺简述
随机推荐
JSP 标准标签库(JSTL)[通俗易懂]
ctfshow 萌新web1-21
C# Sqlite database construction and use skills
pyhon爬虫之爬取图片(亲测可用)
SRM供应商协同管理系统功能介绍
shell函数内如何调用另一个函数
Digital-intelligent supply chain management system for chemical manufacturing industry: build a smart supply system and empower enterprises to improve production efficiency
R语言使用ggpubr包的ggsummarystats函数可视化柱状图(通过ggfunc参数设置)、在可视化图像的下方添加描述性统计结果表格、palette参数配置柱状图及统计数据的颜色
【日记】UPNP功能会允许自动给光猫追加端口映射
Boost库学习笔记(一)安装与配置
yarn detailed introductory tutorial
mmdetection/mmdetection3d多机多卡训练
【日记】nodejs构建API框架以及RESTful API 和 JSON-RPC的取舍
dotnet remoting 抛出异常
【web自动化测试】Playwright快速入门,5分钟上手
Cholesterol-PEG-Maleimide,CLS-PEG-MAL,胆固醇-聚乙二醇-马来酰亚胺一种修饰性PEG
The second step through MySQL in four steps: MySQL index learning
【论文阅读】Decision Transformer: Reinforcement Learning via Sequence Modeling
图扑软件与华为云共同构建新型智慧工厂
88. (the home of cesium) cesium polymerization figure