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: Benjamin Abbott
Subject: Re: sombrero default argument (matlab compatibility)
Date: Tue, 24 Jun 2014 15:06:18 -0400

> On Jun 24, 2014, at 2:26 PM, Andreas Weber <address@hidden> 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.
> 
> -- Andy

It's been a common practice to make the demo scripts compatible with Matlab.

Given the motivation, I don't expect any objection to modifying the sombrero 
script.

Ben



reply via email to

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