[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sombrero default argument (matlab compatibility)
From: |
Andreas Weber |
Subject: |
Re: sombrero default argument (matlab compatibility) |
Date: |
Tue, 24 Jun 2014 20:26:40 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 |
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.
-- Andy