当前位置:网站首页>Matlab reads multiple fig graphs and then combines them into one graph (in the form of sub graph)
Matlab reads multiple fig graphs and then combines them into one graph (in the form of sub graph)
2022-04-23 03:54:00 【subtitle_】
introduction
Many experiments have been done and some experimental images have been obtained ,matlab Export saved for fig Format , Want to read multiple fig The picture is then combined into a big picture ( The form of subgraph ), I checked some information , Record some of your thoughts and experiences .
1. Code
for i=1:10
% The open fig Modify the path of the file as appropriate
hf(i)=open(['.\fig\sin-x1-test_',num2str(i),'.fig']);% open fig
fig(i)=get(hf(i), 'CurrentAxes');% Get the drawn image
end
% Create a new drawing window
figure
for i=1:10
% See how many rows and columns you want to draw, and change them as appropriate
subplot(2,5,i);% The first i Subtext
axChildren = get(fig(i),'Children');% Get the drawn image
copyobj(axChildren, gca);% Copy to the current window
close(hf(i));% Turn off the copied image
% Here's how to set the picture , Please amend... As appropriate
title(['S Curvilinear section ',num2str(i),' Secondary test ']);% Draw subgraph title
xlabel('Angle(\circ)');% Draw a subgraph x label
ylabel('Center WaveLength Change(nm)');% Draw a subgraph y label
yaxis([-0.05,0.2])% Draw a subgraph y The scope of the
xticks([0 20 40 60 80 100]);% Draw subgraph scale
end
2. The final effect is as shown in the figure
Reference material :
1.MATLAB Multiple graphs of a drawing are combined into one graph in the form of subgraphs
2.️Matlab Seamlessly stitching multiple images into one image ️
版权声明
本文为[subtitle_]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230353257558.html
边栏推荐
- VSCode配置之Matlab极简配置
- Websites frequented by old programmers (continuously updated)
- Instructions for fastmock
- CRF based medical entity recognition baseline
- Idea debug debugging tutorial
- The art of concurrent programming (3): an in-depth understanding of the principle of synchronized
- [mathematical modeling] my mathematical memory
- Photoshop installation under win10
- Summary of knowledge map (I)
- Does China Mobile earn 285 million a day? In fact, 5g is difficult to bring more profits, so where is the money?
猜你喜欢
Basic usage of Google colab (I)
Installation and configuration of clion under win10
【NeurIPS 2019】Self-Supervised Deep Learning on Point Clouds by Reconstructing Space
Second kill all interval related problems
The art of concurrent programming (6): explain the principle of reentrantlock in detail
[AI vision · quick review of NLP natural language processing papers today, issue 30] Thu, 14 APR 2022
What if you encounter symbols you don't know in mathematical formulas
使用大华设备开发行AI人流量统计出现时间不正确的原因分析
Seekbar custom style details
ROS series (IV): ROS communication mechanism series (3): parameter server
随机推荐
Websites frequented by old programmers (continuously updated)
ROS series (4): ROS communication mechanism series (4): topic communication practice
OpenCV----YOLACT实例分割模型推理
Does China Mobile earn 285 million a day? In fact, 5g is difficult to bring more profits, so where is the money?
【BIM+GIS】ArcGIS Pro2.8如何打开Revit模型,BIM和GIS融合?
51 single chip microcomputer: D / a digital to analog conversion experiment
The latest price trend chart and trading points of London Silver
【BIM入门实战】Revit建筑墙体:构造、包络、叠层图文详解
Design and implementation of redis (4): what is the event driver of redis
Raspberry pie 3B logs into the wired end of Ruijie campus network through mentohust, creates WiFi (open hotspot) for other devices, and realizes self startup at the same time
伦敦银最新价格走势图与买卖点
mui. Plusready does not take effect
ROS series (IV): ROS communication mechanism series (2): Service Communication
【李宏毅2022 机器学习春】hw6_GAN(不懂..)
Abstract classes, interfaces and common keywords
MySQL is completely uninstalled and MySQL service is cleaned up
[AI vision · quick review of today's sound acoustic papers issue 1] Thu, 14 APR 2022
一个函数秒杀2Sum 3Sum 4Sum问题
Why is it necessary to divide the variance by 255^2 when adding Gaussian noise using the imnoise function of MATLAB
Vscode delete uninstall residue