Wednesday, October 24, 2007

MATLAB: figure tips

Always forgot which is x or y, confusing with 'img(y, x)--(row, column)'
[x, y, button] = ginput(2);
plot(x, y, 'r*');
make a figure current and make it ready for operation
figure(5) %'h=figure(5)': h=5
set(0, 'CurrentFigure', 5); % make figure current

Change the name (title) of the figure
h = figure('Name','my window','NumberTitle','off'); %h=1,2 ..N
set(0, 'CurrentFigure', h);

No comments:

Post a Comment