XQS started, wait for applet!

Subject: XploRe: Learning Guide
See XploRe:

Quantlet: matrix05
Description: Matrix reshaping.
Download: matrix05.xpl

Code:
;
  library("xplore")        ; reduce is part of library xplore
;
  x = matrix(3,1,2,1)
  reduce(x)                ; reduces to dimensions >1
;
  x = #(1, 1, 1, 1, 1) ~ #(2, 2, 2, 2, 2)
  x
  d = #(2, 5)   
  reshape(x, d)            ; reshapes x to 2 x 5 matrix
;
  vec(x)                   ; reshapes x to 10 x 1 vector
;
  vec(x,5)~vec(3,x)        ; vectorizes x and appends other 
                           ;    objects
;
  z1 = #(1,2,3)
  z2 = vec(1,2,3)




Subject: XploRe: Learning Guide
See XploRe:

© MD*Tech - Method and Data Technologies, generated on 6.6.2000 .