[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sombrero default argument (matlab compatibility)
From: |
Andreas Weber |
Subject: |
sombrero default argument (matlab compatibility) |
Date: |
Tue, 24 Jun 2014 19:48:06 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 |
Dear maintainers,
Changeset befb99c0c72f
(http://hg.savannah.gnu.org/hgweb/octave/rev/befb99c0c72f) makes uses of
default arguments which are incompatible with matlab. I would like to
undo this
-function [x, y, z] = sombrero (n = 41)
+function [x, y, z] = sombrero (n)
+
+ if (nargin == 0)
+ n = 41;
+ endif
to be able to run sombrero in matlab to compare plots.
Any hints or pitfalls I'm not aware off?
Andy
- sombrero default argument (matlab compatibility),
Andreas Weber <=