Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In Maple the command NullSpace turns a given matrix into a set of vectors -- a basis for its null space. This is precisely what it should in a mathematical sense. However, for computations using the obtained basis, it would be more convenient to have as output a matrix whose columns are the basis vectors.

I'm having a hard time converting a set of vectors into a matrix whose columns are the given vectors. The order doesn't matter (of course). Any help greatly appreciated.

share|cite|improve this question
up vote 2 down vote accepted

Its quite easy:

kern := NullSpace(A)    
Test := Matrix(convert(kern, list))

should perfectly do the job for you (note that it also depends on your exact version of Maple)

share|cite|improve this answer
Thanks, works perfectly. – Rasmus Jan 13 '11 at 8:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.