help-octave
[Top][All Lists]
Advanced

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

Re: cell{1:5}=1 not working for me!!!


From: Jordi Gutiérrez Hermoso
Subject: Re: cell{1:5}=1 not working for me!!!
Date: Wed, 30 May 2012 11:04:21 -0400

On 30 May 2012 10:45, oxy <address@hidden> wrote:
> octave:1> cell{1:5}=1
> error: invalid assignment to cs-list outside multiple assignment.
> error: assignment to cell array failed
> error: assignment failed, or no method for `<unknown type> = scalar'
>
> It used to work in past versions. This code is from an old functioning
> script from me. What happened?

If it used to work, it was a bug. Use () instead of {} to index cells
with assignment.

- Jordi G. H.


reply via email to

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