Matlab - graphic handles Flashcards
1
Q
what is gcf
A
gcf is the handle to the current figure. Get(gcf) will show you the properties of the current figure.
2
Q
how would you tell Matlab to place a current figure in a position
A
set(gcf,’Position’,[50,50,600,800])
3
Q
in this example: set(gcf,’Position’,[50,50,600,800]) where do the pixels indicate to?
A
50 pixels above and 50 pixels to the left of the bottom left hand of the corner of the screen. the figure is 600 pixels wide and 800 pixels high.
4
Q
what is gca?
A
the handle to the current axis
set (gca,’XTick’,1:4’,’XTickLabel’,{‘cat’,’dog’,’car’,’boat’})
- This gives the current axis four tick marks at numbers 1 to 4, and puts the words ‘cat’
, ‘dog’ etc on each
tick mark.