I have attached my mathcad approach,
No, you seem to have forgotten to attach the sheet. You just had inserted a screenshot.
Justin Wollmann wrote:
Hi all,
I am needing to output calculated variables from my mathcad calculation sheet, into either a .txt or a .exp file. I have first tried using a matrix to do this, but the formatting is not exactly what I am needing.
I have attached my mathcad approach, and the resulting format. The problem with the format shown is the space between the =, and the value of the variable.
The reason I am needing to do this is so that I can output calculated variables into a file that will be read by siemens NX. Perhaps anyone knows of a script that has already been built that can do this?
Two methods come in mind at first.
1) You could use num2str() and concat() to turn the number into a string and concatenete it with the text in front, Then just output the vector consisting of those strings
2) similar as above but use WRITEBIN for more flexibility. You can get rid of the quotes here using str2vec as shown in this thread: