How to set a title to the axes

11 views (last 30 days)
Kishan Bhat K
Kishan Bhat K on 23 Feb 2020
Edited: Image Analyst on 23 Feb 2020
axes(handles.axes1);
vid=videoinput('winvideo',1);
set(vid,'ReturnedColorSpace','RGB');
vidres=get(vid,'VideoResolution');
nband=get(vid,'NumberOfBands');
himage=image(zeros(vidres(2),vidres(1),nband));
preview(vid,himage);
pause(3);
img=getsnapshot(vid);
img=rgb2gray(img);
img1=imadjust(img);
axes(handles.axes2);
imshow(img);
I want to add titles to the handles.axes1 and axes2 axes.

Answers (1)

Image Analyst
Image Analyst on 23 Feb 2020
Try this:
title(handles.axes1, 'This is axes1', 'FontSize', 20);
title(handles.axes2, 'This is axes2', 'FontSize', 20);

Categories

Find more on Graphics Object Programming in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!