Skip to main content
1-Visitor
March 9, 2013
Solved

DATA EXTRACTION

  • March 9, 2013
  • 1 reply
  • 3753 views

Hello,

Please see the attached MathCad 15 worksheet.

I am trying to extract the data for Figs. 8, 9, 10(a) and 10(b). Y won't let me to do this.

Could anyone help and let me know the way I can extract the data for the graphs?

I am transferring data to EXCEL to plot more aesthetics looking graphs.

In the worksheet, I have indicated the graphs and the data associated with them.

Thank you so much,

Anousheh

Best answer by Werner_E

Again - you had not defined different vectors Y, therefore the crippled graphs as some need higher values of Y.

I think you will find the attched useful.

I have written a routine to create a table with the abscissa and ordinate values as first and second column. You can extract them as single vector using the rowselector (Strg-6).

The 6 parameters of the routine allow selection of the two functions for abscissa and ordinate, rho, start and end value of Y and the number of points (= size of the resulting vectors) to allow for more details.

I guess you could now chose the same higher value for Y-end (second but last parameter) as I have rewritten your function, especially function X, which now returns NaN if the integral does not convert (the reason for the errors in some of your prior sheets).

Furthermore the graphs evaluate much quicker now, even if you increase the number of points.

1 reply

25-Diamond I
March 9, 2013

Mathcad can not evaluate X(Y,10) if you don't tell it what Y should be. This works for quickplots, where Mathcad automaticaly creates a range variable Y for you. So as you want vectors to export to Excel, you will have define Y as a vector (you have to know which range). The vectorization I did just for safety, as far as I see it would not be necessary with the functions you have defined.

Y, X10, X20 and X60 are now vectors you can export (and use for plot in MC, too).

dataextr1.png

Anousheh1-VisitorAuthor
1-Visitor
March 9, 2013

Hello Werner,

Thanks.

Could you please attach the worksheet for me? Thank you,

Anousheh

25-Diamond I
March 9, 2013

Anousheh Rouzbehani wrote:

Hello Werner,

Thanks.

Could you please attach the worksheet for me? Thank you,

Anousheh

Oops, sorry. Thats what I intended to do but forgot.

Unfortunately I didn't keep the worksheet, its gone. But I think it would not be that difficult for you to recreate from the image I included.