help-octave
[Top][All Lists]
Advanced

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

Re: help using dimensions on min()


From: Chris Daamen
Subject: Re: help using dimensions on min()
Date: Fri, 28 Jun 2013 14:19:10 +0200

Yes that solved it! Incredible I missed that one... I feel very dumb now, this 
has taken many hours already. Thanks a lot for your quick answer!

Is there actually some established strategy on how to avoid such name 
collisions? As probably noone knows all function names by heart. I guess I 
could prefix all variables with something, but maybe there has been developed 
some standard strategy for this.

Op 28 jun. 2013, om 14:06 heeft Juan Pablo Carbajal het volgende geschreven:

> On Fri, Jun 28, 2013 at 2:00 PM, Chris Daamen <address@hidden> wrote:
>> [min, minSigma] = min(testMatrix,[],1)
>> [min, minC] = min(testMatrix,[],2)
> 
> The problem is that you are overwriting the name of the function min,
> and make it a variable (see your commands above). If you execute
> [m1, minSigma] = min(testMatrix,[],1)
> [m2, minC] = min(testMatrix,[],2)
> 
> Everything works fine. Remember not to overwrite your function names
> by variables.




reply via email to

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