octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sombrero default argument (matlab compatibility)


From: John W. Eaton
Subject: Re: sombrero default argument (matlab compatibility)
Date: Tue, 24 Jun 2014 14:32:04 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0

On 06/24/2014 02:26 PM, Andreas Weber wrote:
Am 24.06.2014 19:48, schrieb Andreas Weber:
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?


I've should better have asked:
Are there any objections making octave scripts matlab compatible? I also
want to replace double quotes with single quotes in demo blocks.

Yes, I object.

jwe





reply via email to

[Prev in Thread] Current Thread [Next in Thread]