How to "split" a vector in two vectors

racing01's picture

I don't know if th e Subject Explains my problem...

But I'll expalin

I have a vector column (44 rows), and I want to assign the first 22 rows to a another vector and storage it in a variable and the same with the other 22 rows. How can I achieve this???

By the way, with this same vector, when I print the page, maple "cuts" the vector and the whole vector is not printed, is there any way to solve this??

 

Thanks a lot!

acer's picture

Vector extraction

> V := Vector(10,i->3*i+11);
                                        [14]
                                        [  ]
                                        [17]
                                        [  ]
                                        [20]
                                        [  ]
                                        [23]
                                        [  ]
                                        [26]
                                   V := [  ]
                                        [29]
                                        [  ]
                                        [32]
                                        [  ]
                                        [35]
                                        [  ]
                                        [38]
                                        [  ]
                                        [41]

> V1,V2 := V[1..5],V[6..-1];
                                       [14]  [29]
                                       [  ]  [  ]
                                       [17]  [32]
                                       [  ]  [  ]
                             V1, V2 := [20], [35]
                                       [  ]  [  ]
                                       [23]  [38]
                                       [  ]  [  ]
                                       [26]  [41]

See ?interface and the item on rtablesize, for controlling the dimension above which Vectors/Matrix get printed compactly. Eg,

interface(rtablesize=9);
Vector[row](10);
interface(rtablesize=10);
Vector[row](10);

See ?LinearAlgebra,General,MVextract for more about Vector "extraction".

Sorry, I don't have any ideas about problems specific (only) to printing. You might consider contacting support@maplesoft.com to ask Technical Support.

acer

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
}