Question: How to generate and save text files? (after LATEX(mymatrix))

m1:= [[1, 2, 3], [ 4, 5, 6], [7, 8, 9]]:

m2:= [[2, 2, 3], [ 4, 5, 6], [7, 8, 9]]:
latex(Matrix(m1));
latex(Matrix(m2));



Hello,

Given my commands (above), I would like to save the output of

latext(Matrix(m1))

as

m1.tex

in the directory "c:\users\desktop\work"

 

and the ouput of

latex(Matrix(m2));

as m2.tex

in the directory "c:\users\desktop\work",

How could I do that?

 

Thanks for your help,

 

Jean-Jacques

 

Please Wait...