%% Find Text Objects
% Use findall to return all Text objects or Text objects with specific properties.
% Create a figure with a plot. Then, label the axes and add a title to the axes. Set the color of the title to blue.

plot((1:10).^2)
xlabel('x')
ylabel('y')
title('y = x^2','Color','b')

%
% Return all Text objects in the current figure.

h1 = findall(gcf,'Type','text')

% Now, return all blue Text objects.

h2 = findall(gcf,'Type','text','Color','b')

% Copyright 2020 The MathWorks, Inc.