How to set a title to the axes

4 visualizzazioni (ultimi 30 giorni)
Kishan Bhat K
Kishan Bhat K il 23 Feb 2020
Modificato: Image Analyst il 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.

Risposte (1)

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

Categorie

Scopri di più su Creating, Deleting, and Querying Graphics Objects in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by