HELP: translating GAUSS-Script to Ocatve

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

HELP: translating GAUSS-Script to Ocatve

Wolfgang Zocher-2
Hi, all --

I recently got a script written in the GAUSS-Language that
I have to translate for the use with Octave.

Has anyone out there done this job before? Esspecially I
don't know what the ~-operator in GAUSS is for and if there
is an equivalent operator in Octave!

Any help welcome.
Thank you in advance...

--
Wolfgang Zocher

email: [hidden email] (office)
       [hidden email]          (home)
www:   http://www.unics.uni-hannover.de/rrzn/zocher


Reply | Threaded
Open this post in threaded view
|

Re: HELP: translating GAUSS-Script to Ocatve

Daniel A. Powers

I use gauss all the time.  The ~ operator is horizontal concatenation
for example:  

let x1[4,2] =
1 30
1 20
1 10
1 50;

let z[4,1] =
  .24
 1.20
 -.2
  .4;

xmat=x1~z;

xmat;  

would print....

1 30  .24
1 20 1.20
1 10 -.20
1 50  .4

Also, | is vertical contatenation.


Cheers,
Dan
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Dan Powers                     Internet: [hidden email]
Department of Sociology        
University of Texas at Austin             (512) 471-1122
Austin, TX 78712-1008                FAX: (512) 471-1748