[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: structures Matlab - Octave
From: |
Evan Monroig |
Subject: |
Re: structures Matlab - Octave |
Date: |
Thu, 29 Dec 2005 08:54:51 +0900 |
User-agent: |
Mutt/1.5.9i |
On Dec.28 18h23, Michael Schmid wrote :
> there are some differences between Matlab and Octave in the structure
> data type.
>
> Matlab:
> ======
> type = subscripts(1).type;
> subs = subscripts(1).subs;
> subscripts(1) = []; ==> this is in Octave not possible
If I am right about what you are trying to do, in octave you can do like
this:
octave:2> subscripts{1}.type = 1;
octave:3> subscripts{1}.subs = 2;
octave:4> subscripts{2} = [1,2,3];
octave:5> subscripts
subscripts =
{
[1,1] =
{
subs = 2
type = 1
}
[1,2] =
1 2 3
}
Evan
signature.asc
Description: Digital signature