Hi guys! Maple noob here.

I want to get an array of the sums of each and every row of a matrix which I imported from Excel. I can't manage to work my way around with LinearAlgebra-Add, Sum and eval. Maple always shows me the table and not the scalar I am looking for.I'd also like to know how to tell Maple how to do something on a certain interval of cells of the matrix.I hope I have been clear and you can help me out :D

Cheers from Italy!

Hi all,

I am trying to get the following matrix:restart:int00:=Matrix(3,3);int00[2,2]:=a;int00[2,3]:=b;int00[3,2]:=c;int00[3,3]:=d;int00;cols:=MTM:-sum(int00,1);rows:=MTM:-sum(int00,2);int00[1,1..3]:=-cols:int00[1..3,1]:=-rows:int00;int00[1,1]:=a+b+c+d:int00;MTM:-sum(int00,1);MTM:-sum(int00,2);How do I get the sum of all elemnets in the 'original' matrix? Bascially, the int00[1,1] term in the toy example.

A := [[1,2],[3,4]];

A1:=convert(A, Matrix);

I am very happy with conversion between Matrices and Vectors.

However, I does not seem to be able to do this backwards to [row] or [column] Vectors???

Say how do I get back to A from A1???

I tried to use

convert(A1,Vector);

convert(A1,Vector[row]);

convert(A1,Vector[row],2);

And many others...

hey guys , my concern is about boundaries in random matrix or rtable. so, i can garantee that boundaries in matrices are in 0 and 10, but i can´t impose a restriction like the sum of row must be equal 10 for example.help !!

pop:=(10-0)*ArrayTools:-RandomArray(proc(A)local i if A::rtable[row] then seq(A(i),i=1..NumElems(A));else argsend if end proc(10,3))+0;

Suppose I have a matrix M, with rational entries. I need to go row by row and scale each individually by the smallest possible integer such that the entries in each row are integer-valued - anyone have an easy way to do this? It's a large matrix.

I have data organized in a Matrix from which I want to select a sample based on a certain (simple) criterion, e.g. no cell in the first column to be negative.

I was quickly able to find a way to do it, inspired by a method Preben Alsholm used in a recent mapleprimes post.

But, I wondered, is that the most natural approach? So I quickly found another approach and compared them.

Any other suggestions welcome. Particularly methods that could...

You must be logged into your Facebook account in order to share via Facebook.

Click the button below to share this on Google+. A new window will open.

You must be logged in to your Twitter account in order to share. Click the button below to login (a new window will open.)

Please log-in to your MaplePrimes account.

Wrong Email/Password. Please try again.