Skip to main content
1-Visitor
July 10, 2019
Solved

Nested matrices -> save to txt file (MathCAD Prrime)

  • July 10, 2019
  • 1 reply
  • 1478 views

Hi guys,

 

I would be grateful for your little help. Matrix consisting of number of nested matrices cannot be saved to a file. (System Error: Not supported type). Please find my test files attached. Thank you - Pawel

Best answer by Werner_E

simply use "augment(a,b)" instead of "augment([ a b])" to avoid the nested matrices.

 

The WRITEFILE command only has effect if you either evaluate it by  placing an inline evaluation (=) after it or by assigning it a dummy variable. The latter usually avoids cluttering the sheet with unwanted displayed matrices.

Your file Zescyt2.txt is therefore never written as you have neither an evaluation nor an assignment.

The  file Zescyt3.txt would be written as you have an evaluation, but WRITEFILE does not know how to handle nested matrices and therefore fails.

B.png

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
July 10, 2019

simply use "augment(a,b)" instead of "augment([ a b])" to avoid the nested matrices.

 

The WRITEFILE command only has effect if you either evaluate it by  placing an inline evaluation (=) after it or by assigning it a dummy variable. The latter usually avoids cluttering the sheet with unwanted displayed matrices.

Your file Zescyt2.txt is therefore never written as you have neither an evaluation nor an assignment.

The  file Zescyt3.txt would be written as you have an evaluation, but WRITEFILE does not know how to handle nested matrices and therefore fails.

B.png

1-Visitor
July 10, 2019

Thank you Werner_E, it worked 🙂