diff scripts/plot/contourc.m @ 8236:7799d8c38312

Small plotting fixes
author David Bateman <dbateman@free.fr>
date Fri, 17 Oct 2008 16:06:32 +0100
parents 9af6f0a214ee
children b93ac0586e4b
line wrap: on
line diff
--- a/scripts/plot/contourc.m
+++ b/scripts/plot/contourc.m
@@ -57,7 +57,7 @@
 
 ## Author: Shai Ayal <shaiay@users.sourceforge.net>
 
-function [c, lev] = contourc (varargin)
+function [cout, lev] = contourc (varargin)
 
   if (nargin == 1)
     vn = 10;
@@ -127,7 +127,8 @@
     endwhile
   endif
     
-  if (nargout == 2)
+  if (nargout > 0)
+    cout = c;
     lev = vv;
   endif