help-octave
[Top][All Lists]
Advanced

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

Re: problem with column specification in matrices


From: Mike Miller
Subject: Re: problem with column specification in matrices
Date: Thu, 31 Oct 2002 13:29:17 -0600 (CST)

On Thu, 31 Oct 2002, John W. Eaton wrote:

> In an expression like
>
>   [n (1+1./n).^n]
>
> should that be interpreted as two expressions
>
>   [n, (1+1./n).^n]
>
> or as one, with n indexed by the second expression (that's what you'd
> get without the square brackets).
>
> IMHO, it was bad design for Matlab to make whitespace magic inside the
> square brackets.


Thanks, John.  I was a little perplexed when [n n] did what I expected.  I
guess the bottom line is this:  A comma will always work for me.

Mike



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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