
Handle Graphics
hfig = figure('Name','Function and Mean',...
'Pointer','fullcrosshair');
hax = axes('Parent',hf ig);
plot(hax,x,y)
hold on
plot(hax,[min(x) max(x)],[ ym ym],'Colo r','red')
hold off
ylab = get(hax,'YTick');
set(hax,'YTick',sort([ylab ym]))
title ('y = 1. 5cos(x) + 6e^{-0.1x} + e^{0.07x}sin(3x)')
xlabel('X Axis'); ylabel('Y Axis')
Finding the Handles of Existing Objects
The findobj function enables you to obtain the handles of graphics objects
by searching for objects with particular property v alues. With
findobj you
can specify the v alues of any combination of properties, which makes it easy
to pick one object out of many.
findobj also recognizes regular express ions
(
regexp).
For example, you might want to find the blue line with square marker having
blue face color. You can also specify w hichfiguresoraxestosearch,ifthere
3-81
Komentarze do niniejszej Instrukcji