f



'image' and 'imagesc'

Why is it, that 'image' and 'imagesc' change the y -
direction of my data? Or an even more important question,
how do I prevent them from doing so?

This is the command I use:
imagesc(x_vec,y_vec,rez_fld);

with:
x_vec = 3:0.5:7.5
y_vec = 1:-0.5:-1
rez_fld = size(x_vec) x size(y_vec)



greetz, kai 
0
9/12/2007 10:50:49 AM
comp.soft-sys.matlab 211266 articles. 24 followers. lunamoonmoon (257) is leader. Post Follow

1 Replies
628 Views

Similar Articles

[PageSpeed] 32

Kai:
<SNIP wants it upside down...

> Why is it, that 'image' and 'imagesc' change the y -
> direction of my data...

because: that's how you typically look at pics
- top/left to bottom/right

% now,
     img=load('clown');
     imagesc(img.X);
     axis image;
% -or-
%    axis ij;
     disp('change y');
     pause;
     axis xy;
% -or-
%    set(gca,'ydir','normal');
% then
     disp('get it all right...')
     pause;
     imagesc(flipud(img.X));
     axis image;
     axis xy;
% for more information
     help axis;

us
0
us1 (8051)
9/12/2007 11:16:41 AM
Reply: