# HG changeset patch # User lxop # Date 1269996306 0 # Node ID 518e6158f3d70e6be6a428f6c7a6090f420eeb87 # Parent ff677dc40e29d4d978a20dd99cf0edcc36643d37 Bug found and fixed in phantom that prevented the use of custom ellipses diff --git a/inst/phantom.m b/inst/phantom.m --- a/inst/phantom.m +++ b/inst/phantom.m @@ -135,10 +135,10 @@ if (nargin == 1) if (ischar (varargin {1})) ellip = select_phantom (varargin {1}); - elseif (numel (varargin {1} == 1)) + elseif (numel (varargin {1}) == 1) n = varargin {1}; else - if (size (varargin {1}, 1) != 6) + if (size (varargin {1}, 2) != 6) error ("Wrong number of columns in user phantom"); endif ellip = varargin {1}; @@ -208,5 +208,8 @@ %! imshow (P, []); % $Log$ +% 2010/03/31 lxop +% Fixed typo that prevented the use of custom ellipses +% % 2010/03/09 lxop % First commit to repo