From help-request at octave dot org Wed Dec 28 17:56:57 2005 Subject: Re: structures Matlab - Octave From: Evan Monroig To: help at octave dot org Date: Thu, 29 Dec 2005 08:54:51 +0900 --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Dec.28 18h23, Michael Schmid wrote : > there are some differences between Matlab and Octave in the structure=20 > data type. >=20 > Matlab: > =3D=3D=3D=3D=3D=3D > type =3D subscripts(1).type; > subs =3D subscripts(1).subs; > subscripts(1) =3D []; =3D=3D> this is in Octave not possi= ble If I am right about what you are trying to do, in octave you can do like=20 this: octave:2> subscripts{1}.type =3D 1; octave:3> subscripts{1}.subs =3D 2; octave:4> subscripts{2} =3D [1,2,3]; octave:5> subscripts subscripts =3D { [1,1] =3D { subs =3D 2 type =3D 1 } [1,2] =3D 1 2 3 } Evan --VbJkn9YxBvnuCH5J Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFDsyXLBwdtaPRpQpQRAovJAKDxfBNblnCtY8DMiCBNs5z48HIlMwCfStqV X70mu4CDMzVHQbOxDzpiGO8= =yw+w -----END PGP SIGNATURE----- --VbJkn9YxBvnuCH5J-- ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------