Skip to main content
1-Visitor
February 17, 2019
Question

Exporting Mathcad data

  • February 17, 2019
  • 1 reply
  • 3758 views

Hi,

 

I have been working on this equation and the worksheet works.

Now I want to export rho_ms(w) and w to make a plot and be compared with the result from other program.

image.png

 

 

I have read about the vectorization process like in this https://community.ptc.com/t5/PTC-Mathcad/exporting-the-vector-of-f-x-y-function-into-matrix-or-table/m-p/569400

and follow one of the uploaded file.

But I have this labeling issue.

image.png

What I understand about this vectorization is we need to change our range variable into an indexed variable.

what label should I put for that index i?
if I use w(i), it is ok, but it comes back to a case of range variable, doesn't it?

I tried with auto and variable, but still have error while one uploaded worksheet in the link above use auto and works.

maybe i missunderstand something here.

I attached the worksheet.
I appreciate the help.

 

1 reply

23-Emerald I
February 17, 2019

When you type w(i)  {or with a subscripted index, w[i} you are creating a vector variable w.  This is different than your original range variable w, so be careful.  If you then vectorize your equations A(w), Deff(w), and so on the results of those calculations will be vectors (the same length as the vector w), and you can write those to a file.  

 

The augment function will arrange vectors side by side into a single array for handling.

bmulyanto1-VisitorAuthor
1-Visitor
February 17, 2019

I tried to use w(i) and put it in the excel component.
still have this error..

image.png

25-Diamond I
February 17, 2019

B.png

See if the attached file (P5 format) helps