pcolorn.m
author A.M. Thurnherr <athurnherr@yahoo.com>
Wed, 15 Apr 2015 09:55:34 +0000
changeset 16 54126cc9bb4a
parent 0 0a450563f904
permissions -rw-r--r--
IX_11beta set to Diana Cardoso for testing

function h = pcolorn(x,y,c)
%   map to imagesc
%   M. Visbeck 2004

if nargin < 1
    error('Too few input arguments.');
elseif nargin > 4
    error('Too many input arguments.')
end

if nargin == 1
    hh = imagesc(flipud(x))
elseif nargin == 3
    hh = imagesc(x,-y,c);
else
    error('Must have one or three input arguments.')
end