当前位置:网站首页>Matlab drawing 1
Matlab drawing 1
2022-08-04 18:00:00 【Thousands of old bamboo】
Draw multiple function images at the same time
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的句柄值
效果如下:

Put multiple function images in one window
subplot(m,n,num);//m是行数,n是列数,numis the first picture
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>');
位图格式 矢量图格式
边栏推荐
- R语言dplyr包group_by函数和summarise_at函数计算dataframe计算不同分组的计数个数和均值、使用%>%符号将多个函数串起来
- R语言时间序列数据算术运算:使用diff函数计算时间序列数据的逐次差分、使用时间序列之间的除法计算相对变化率(乘以100获得百分比)
- 静态iP与权限更改[通俗易懂]
- Create Sentinel high-availability cluster current limiting middleware from -99
- Flutter实战-请求封装(四)之gzip报文压缩
- Boosting之GBDT原理
- 语音识别学习资源
- 公司自用的国产API管理神器
- PT100铂热电阻三种测温方法介绍
- 对象实例化之后一定会存放在堆内存中?
猜你喜欢
信息系统项目管理师必背核心考点(六十)项目集管理
租房小程序登顶码云热门
"Involution" Index Analysis Based on AHP
DSPE-PEG-DBCO,DBCO-PEG-DSPE,磷脂-聚乙二醇-二苯并环辛炔科研实验用
【web自动化测试】Playwright快速入门,5分钟上手
[Web Automation Test] Quick Start with Playwright, 5 minutes to get started
Flutter实战-请求封装(四)之gzip报文压缩
SQL优化最全总结 - MySQL(2022最新版)
报道称任天堂在2023年3月前不会推出任何新硬件产品
悦刻难回巅峰
随机推荐
基于clipboard.js对复制组件的封装
How to make JS code unbreakable
Speech Recognition Learning Resources
LeetCode 899. Ordered Queues
《中国综合算力指数》《中国算力白皮书》《中国存力白皮书》《中国运力白皮书》在首届算力大会上重磅发出
2018读书记
并发编程原理学习-reentrantlock源码分析
数据集成:holo数据同步至redis。redis必须是集群模式?
JS中null与undefined的异同点
OpenInfra Days China 2022|SelectDB与你共享 Apache Doris 在互联网广告业务中的实践
Error when using sourcemap for reporting an error: Can‘t resolve original location of error.
Flutter实战-请求封装(四)之gzip报文压缩
使用Redis做某个时间段在线数统计
启动项目(瑞吉外卖)
Web端即时通讯技术:WebSocket、socket.io、SSE
localhost,127.0.0.1,本机IP
flink-cdc支持并行读取一张mysql表的binlog不?
July 31, 2022 Summary of the third week of summer vacation
darknet source code reading notes-02-list.h and lish.c
【日记】高并发下的DB分库分表分区策略