当前位置:网站首页>Matlab --- multi picture display of coordinate axis
Matlab --- multi picture display of coordinate axis
2022-04-21 10:57:00 【Xiaoyu 2022】
% Premise :3 The picture to be displayed is in the directory where the script is located
% function : take 3 Pictures are displayed on the same axis
% edition :V1.0
% create a window
hFig = figure('Name',' Coordinate axis multi picture display BY Xiaoyu V1.0',...
'NumberTitle','off',...
'Resize','off',...
'Position',[0 0 800 400],...
'ToolBar', 'none',...
'visible', 'off');
% Move the window to the middle of the screen
movegui(hFig, 'center');
% Create axes , Be careful Y The axis direction should be reversed
hAxes = axes('Units','Normalized',...
'Position',[0.05 0.05 .9 .9],...
'NextPlot','add',...
'Box','on',...
'YDir', 'reverse');
% Read 3 A picture
if exist('pic001.jpg', 'file') ~= 2
errordlg(' picture pic001.jpg non-existent !');
return;
end
if exist('pic002.jpg', 'file') ~= 2
errordlg(' picture pic002.jpg non-existent !');
return;
end
if exist('pic003.jpg', 'file') ~= 2
errordlg(' picture pic003.jpg non-existent !');
return;
end
h1 = imread('pic001.jpg');
h2 = imread('pic002.jpg');
h3 = imread('pic003.jpg');
% take 3 The pictures are displayed to the coordinate axis in turn hAxes
image([0 290],[0 390], h1);
image([290 580],[0 390], h2);
image([580 870],[0 390], h3);
% Set the coordinate range of the coordinate axis
set(hAxes,'Xlim',[0 870],...
'Ylim',[0 390],...
'XTickLabel', '',...
'YTickLabel', '',...
'XTick', [],...
'YTick', []);
% After processing , Show this window
set(hFig, 'visible', 'on');

版权声明
本文为[Xiaoyu 2022]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204211056175290.html
边栏推荐
猜你喜欢
随机推荐
Difference between map and jsonobject
AC自动机
AcWing 1749. Block billboard II (classified discussion + enumeration)
Println input and rewriting of toString method
Topological sorting & Critical Path & Digital DP
Six practices of Windows operating system security attack and defense
Enter the welcome interface when idea and pycharm are started
[非线性控制理论]1_Lyapunov直接方法
L1-045 cosmic invincible greeting (5 points)
Installing NFS file system
Leetcode 110 Balanced binary tree (2022.04.20)
桶排序 ← C语言实现
【openEuler】Failed to download metadata for repo ‘EPOL‘: Cannot d
Dapr 远程调试之 Nocalhost
Use of go function
Where is London gold safe to open an account?
Motor control - speed loop design
Go uses channel for synchronization (channel 1)
(坐标型动态规划)lintcode中等248 · 统计比给定整数小的数的个数
犀牛软件插件-rhino插件-visual studio-创建你的第一个插件








