cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Mathcad prime to output text file

태장
1-Newbie

Mathcad prime to output text file

Hi~~

I am trying to get the output text file from mathcad prime with the function "WRITETEXT"  but the arrangement of columns (total 6 col.) fell apart as shown in attached file. How can I make it ? Thanks in advance!!

1 REPLY 1
LucMeekes
23-Emerald I
(To:태장)

What you get is TAB separated data, which means that each two subsequent data values on a row are separated by a TAB (ASCII Chr 8 ).

In short.... this is what it looks like:

0    0    0    0    0    0

0.523560497083924    0    0    0    0    0

1.04689134322999    0    0    0    0    0

1.56976298823283    0    0    0    0    0

2.09194608330789    0    0    0    0    0

2.61321158169134    0    0    0    0    0

3.13333083910761    0    0    0    0    0

3.65207571406029    0    0    0    0    0

4.16921866790256    0    0    0    0    0

4.68453286464312    0    0    0    0    0

5.19779227044398    0    0    0    0    0

5.70877175276639    0    0    0    0    0

6.21724717912137    0    0    0    0    0

6.72299551538164    0    0    0    0    0

7.22579492361179    0    0    0    0    0

7.72542485937368    0    0    0    0    0

8.22166616846458    0    0    0    0    0

8.71430118304538    0    0    0    0    0

9.20311381711695    0    0    0    0    0

9.68788966130257    0    0    0    0    0

10.168416076895    0    0    0    0    0

10.6444822891268    0    0    0    0    0

11.1158794796232    0    0    0    0    0

11.5824008779965    0    0    0    0    0

12.0438418525429    0    0    0    0    0

12.5    0    0    0    0    0

12.9506752343283    0    0    0    0    0

Except that now the TAB characters are replaced by 4 space characters (ASCII Chr 32 ), because I copied it from the text file and pasted it into this forum field.

The TAB separated data is perfectly OK for further processing. You can read the table in Excel, knowing that the separation is a TAB.

If you format it using MsWord you can set the TAB's x cm (or inch if you prefer) apart and get a perfect table.

And you can parse it with any suitable application to filter out any data.

But there is no clear way to make it 'look good' as an ASCII text file, other than by several editing steps.

Luc

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