Author |
Topic  |
|
slammu123
USA
8 Posts |
Posted - 06/27/2003 : 11:30:19 AM
|
HI I made my calculations in MathCad and the result was a matrix.I want to import the data to Origin and plot it. Pls help me do this.
|
|
Mike Buess
USA
3037 Posts |
Posted - 06/27/2003 : 1:21:46 PM
|
If your matrix doesn't have many columns and you plan to do this only once you might just copy one column at a time from the Mathcad matrix and paste to an Origin matrix.
For a larger matrix you'll probably want to export it as an ASCII file. I don't use Mathcad and don't know how, but am sure it can be done. (There might be a Mathcad User's Forum where you could ask... check Mathcad's home page.) Then either
1) import the file directly to a matrix... File->Import ASCII
or, 2) import it to a worksheet and then convert to a matrix... File->Import->Single ASCII Edit->Convert to Matrix->Direct
I need more details from you before I can go into more detail.
Mike Buess Origin WebRing Member |
 |
|
slammu123
USA
8 Posts |
Posted - 06/27/2003 : 3:04:34 PM
|
HI I did that but i am getting a different plot.I would like to know the difference between the data in a worksheet and a matrix. To make this clear,let me tell you how we analyze the data.We import an ASCII file into a worksheet and this contains 3 columns .Then convert to a matrix i.e.random xyz using the Renka Cline gridding method.Using this matrix I plot the data. But when I want to import the data which is in the form of a matrix in MathCad,I am not sure as to directly import to a matrix and plot or import to a matrix,convert to a work sheet with xyz columns and then again convert to a matrix with random xyz and then plot. I tried both the methods but no method works out.
|
 |
|
slammu123
USA
8 Posts |
Posted - 06/27/2003 : 3:04:49 PM
|
HI I did that but i am getting a different plot.I would like to know the difference between the data in a worksheet and a matrix. To make this clear,let me tell you how we analyze the data.We import an ASCII file into a worksheet and this contains 3 columns .Then convert to a matrix i.e.random xyz using the Renka Cline gridding method.Using this matrix I plot the data. But when I want to import the data which is in the form of a matrix in MathCad,I am not sure as to directly import to a matrix and plot or import to a matrix,convert to a work sheet with xyz columns and then again convert to a matrix with random xyz and then plot. I tried both the methods but no method works out.
|
 |
|
easwar
USA
1965 Posts |
Posted - 06/27/2003 : 3:53:12 PM
|
Hi,
I just tried this with Mathcad ver 7. I created a matrix in Mathcad, then exported it as a tab-separated ASCII file. See notes below, from Mathcad help file on how to export a data object to file.
I then went to Origin, created a new matrix window, then clicked on the "Import ASCII" button (the one that says "123"), and picked the file I created, and the data came in fine. Note that you can also use the menu item File->Import ASCII when the matrix window is active, like Mike suggested in his post.
Can you try this procedure and see if that works for you?
Easwar OriginLab.
Notes from Mathcad on how to export to file:
To export data to a data file, use the Output Table component:
Click in a blank spot in your worksheet. Choose Component from the Insert menu. Select Output Table from the list and click “Next.” The Output Table component will be inserted into your worksheet. In the placeholder that appears at the bottom, enter the name of the Mathcad variable containing the data to be exported. Click on the component with the right mouse button so that you see the context menu for the component.
Choose Export. You will see the Write to File dialog box. In the “Files of type” text box, select the format of the file you’d like to create. Use the dialog box to browse to the folder in which the data file will be created and enter the name of the data file you wish to create. Then click “Open.”
The data will be exported to the file you specified. Keep in mind that if the data changes and you want it to update in the data file, you need to export the data again. For making a live connection between Mathcad and a data file, use the File Read/Write component instead.
Edited by - easwar on 06/27/2003 4:05:54 PM |
 |
|
Mike Buess
USA
3037 Posts |
Posted - 06/27/2003 : 3:57:57 PM
|
Origin also uses (if you choose) the Renka Cline method for converting XYZ data to matrix. Why not import the original Mathcad wks to an Origin wks and create your matrix from that?
...Or import your ASCII file to an Origin wks and bypass Mathcad entirely. :)
Mike Buess Origin WebRing Member
Edited by - Mike Buess on 06/27/2003 4:24:37 PM |
 |
|
|
Topic  |
|