当前位置:网站首页>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
边栏推荐
- Picture synthesis video
- Overview of knowledge map (II)
- 什么是软件验收测试,第三方软件检测机构进行验收测试有什么好处?
- [AI vision · quick review of robot papers today, issue 29] Mon, 14 Feb 2022
- Cause analysis of incorrect time of AI traffic statistics of Dahua Equipment Development Bank
- CRF based medical entity recognition baseline
- Opencv4 QR code recognition test
- 【NeurIPS 2019】Self-Supervised Deep Learning on Point Clouds by Reconstructing Space
- [string] ranking of country names ----- problem solving notes
- 网络原理 | TCP/IP中的连接管理机制 重要协议与核心机制
猜你喜欢
Idea debug debugging tutorial
Vscode download and installation + running C language
Xiaomi, which has set the highest sales record of domestic mobile phones in overseas markets, paid renewed attention to the domestic market
Install PaddlePaddle on ARM
Opencv4 QR code recognition test
知乎有问题,谁来解答?
Source code and update details of new instance segmentation network panet (path aggregation network for instance segmentation)
ROS series (I): rapid installation of ROS
Cause analysis of incorrect time of AI traffic statistics of Dahua Equipment Development Bank
Photoshop installation under win10
随机推荐
ERROR: Could not find a version that satisfies the requirement win32gui
创下国产手机在海外市场销量最高纪录的小米,重新关注国内市场
Using VBA interval to extract one column from another in Excel
What is software acceptance testing? What are the benefits of acceptance testing conducted by third-party software testing institutions?
Now is the best time to empower industrial visual inspection with AI
[mathematical modeling] my mathematical memory
【BIM入门实战】Revit建筑墙体:构造、包络、叠层图文详解
什么是软件验收测试,第三方软件检测机构进行验收测试有什么好处?
Idea debug debugging tutorial
[AI vision · quick review of robot papers today, issue 29] Mon, 14 Feb 2022
【测绘程序设计】坐标反算神器V1.0(附C/C#/VB源程序)
標識符、關鍵字、數據類型
ROS series (III): introduction to ROS architecture
Detailed explanation on the use of annotation tool via (VGg image annotator) in mask RCNN
[Li Hongyi 2022 machine learning spring] hw6_ Gan (don't understand...)
Counting and sorting (C language implementation) -- learning notes
Basic usage of Google colab (I)
秒杀所有区间相关问题
Nel ASA:挪威Herøya设施正式启用
The art of concurrent programming (3): an in-depth understanding of the principle of synchronized