MATLAB POLYSPACE RELEASE NOTES Instrukcja Użytkownika Strona 137

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 240
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 136
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
Przeglądanie stron 136
1 2 ... 132 133 134 135 136 137 138 139 140 141 142 ... 239 240

Komentarze do niniejszej Instrukcji

Brak uwag