help-octave
[Top][All Lists]
Advanced

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

Re: need help understanding structure arrays


From: James Sherman Jr.
Subject: Re: need help understanding structure arrays
Date: Sat, 20 Oct 2007 01:46:48 -0400

My guess is that the variable x existed prior to you assigning it,
possibly as a vector/matrix.

On 10/20/07, DushanM <address@hidden> wrote:
> Kim Hansen <address@hidden> wrote:
>
> >On 10/19/07, DushanM <address@hidden> wrote:
> >>   *** octave-2.9.15:46$
> >>   => x(1).a = "string1"
> >>   error: in indexed assignment of matrix, last lhs index must be ()
> >>   error: assignment failed, or no method for `matrix = string'
> >>   error: evaluating assignment expression near line 46, column 8
> >
> > I can not reproduce that problem, try to start a fresh octave and see
> > if you can reproduce it.
> >
> > This is what I got:
> > =======================
> > address@hidden:~$ octave
> > GNU Octave, version 2.9.15
> > [...]
> > octave:1> x(1).a = "string1"
> > x =
> > {
> >   a = string1
> > }
> >
> > octave:2>
> =======================
>
> That was a good idea, because when I launched a fresh octave, the
> example worked the same way yours did.  Now I'm wondering why the
> different behaviors on my system.  Thanks for your help.
>
> - Dushan
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
>


reply via email to

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