How to set a title to the axes
11 views (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
Image Analyst
on 23 Feb 2020
Try this:
title(handles.axes1, 'This is axes1', 'FontSize', 20);
title(handles.axes2, 'This is axes2', 'FontSize', 20);
0 Comments
See Also
Categories
Find more on Graphics Object Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!