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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

how would you tell Matlab to place a current figure in a position

A

set(gcf,’Position’,[50,50,600,800])

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly