Brionyalissa

16 Reputation

2 Badges

16 years, 239 days

MaplePrimes Activity


These are questions asked by Brionyalissa

I am trying to write a script that will read in vector files using ImportMatrix, perform a simple calculation then output a matrix file using ExportMatrix.

 

The difficulty I am having is that I would like to do this on a number of files,

eg.

for i from 1 to 600 do

Mi:=ImportMatrix(rowi):

do calc....

ExportMatrix(matrixi,Mi):

end do:

The variable i is in italics...

If i had a matrix such as:

        3        3        3

M:=  3        3        3

        3        3        3

How would i sum each element in a row to get a column vector such as

         9

V:=   9

Page 1 of 1