cancel
Showing results for 
Search instead for 
Did you mean: 
Security Alert Log4j Security Vulnerability. Click here to know more.
cancel
Showing results for 
Search instead for 
Did you mean: 

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

PawelDabrowski
4-Participant

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

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

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

2 REPLIES 2

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

View solution in original post

Thank you Werner_E, it worked 🙂

Announcements
Check out the latest
Mathcad Tip
"PTC Mathcad 15 / Prime 1-6 Update."