[Top][All Lists]

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

Re: Possible bug? cell array indexing problem

From: Jordi Gutiérrez Hermoso
Subject: Re: Possible bug? cell array indexing problem
Date: Tue, 18 Dec 2012 13:02:16 -0500

On 18 December 2012 11:15, Carnë Draug <address@hidden> wrote:

> ok, so your problem is that `b' is not the variable for the index, but
> the name of the variable that holds the index. Use eval(). Still, my
> advice would be to redesign the thing, it looks messy.

Whenever people start using "eval" for indexing, this is because they
are trying to use variable names like b1, b2, and b3 instead of
realising that they can use an array called b with entries b(1), b(2),
b(3) or b{1}, b{2}, b{3}....

- Jordi G. H.

reply via email to

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