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: Kim Hansen
Subject: Re: need help understanding structure arrays
Date: Sat, 20 Oct 2007 01:22:20 +0200

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>
=======================

-- 
Kim Hansen
Vadgårdsvej 3, 2.tv
2860 Søborg
Fastnet: 3956 2437  --  Mobil: 3091 2437



reply via email to

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