Sunday, March 5, 2017

[Matlab GUI] Insert a logo image on matlab figure

% Load an image file
imagefile = 'image.jpg';
% load an image file
im=imread(imagefile);
clf
plot(randn(1,100))
% Set an image position
axes('position',[0,0.9,0.1,0.1])
% Display an image on the figure
imshow(im)

As a result, it looks as below.











No comments:

Post a Comment