How to set a title to the axes

13 vues (au cours des 30 derniers jours)
Kishan Bhat K
Kishan Bhat K le 23 Fév 2020
Modifié(e) : Image Analyst le 23 Fév 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.

Réponses (1)

Image Analyst
Image Analyst le 23 Fév 2020
Try this:
title(handles.axes1, 'This is axes1', 'FontSize', 20);
title(handles.axes2, 'This is axes2', 'FontSize', 20);

Catégories

En savoir plus sur Graphics Object Programming dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by