help-octave
[Top][All Lists]
Advanced

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

Re: eval() for user-defined matrices?


From: Carlo de Falco
Subject: Re: eval() for user-defined matrices?
Date: Thu, 7 Sep 2006 11:22:29 +0200

On 9/7/06, Carlo de Falco <address@hidden> wrote:
On 9/7/06, the_verge <address@hidden> wrote:
>
> Hi all,
>
> Is there a way to implement eval("thing_x") if thing_x is a vector?  Or is
> there some alternative command that will do the same thing?  For example:
>
> thing_x = [1 3 6 9 0];
> eval("thing_x")
>
> returns "invalid vector index = 116"
> instead of:
>
> thing_x = 1 3 6 9 0
>
> Any ideas on how to do this?
> Note:  I would like class(eval(thing_x)) to be double
>
> Thanks,
> Vergil
> --


Sorry for the first answer, I misread
thing_x = [1 3 6 9 0];
eval("thing_x")
as
thing_x = [1 3 6 9 0];
eval(thing_x)

The first version works fine for me,
so I don't see why you get an error...

-
c.


reply via email to

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