Skip to main content
1-Visitor
April 8, 2015
Question

Exporting the results of a function parameterized using a range

  • April 8, 2015
  • 2 replies
  • 1653 views

Greetings, all,

I am using MathCAD Prime 3.0. I am attempting to model 1D advection-dispersion in groundwater using, strangely enough, the advection-dispersion equation. Where the problems start is getting the results out of the model. I've attached the MathCAD file I'm having issues with.

I set up the function, which takes two variables, x (a length) and t (a time) I am able to create a range variable, k, going from 0 m to 1200 m in 10 m intervals. I use this range variable to create a nice set of plots.

Now, what I want to do is evaluate the function C(k,t). The results appear to go into a table. But I cannot figure out how to:

a) Export these results to a text file or;

b) Include these results in an Excel file

Ideally, I'd like to be able to assign a variable, or at least a vector, to the results, so I can manipulate them later. But I can't figure out how, and I've been struggling with this for about a day now. I am a fairly new MathCAD user, and find the documentation a real struggle. To complete the assignment I just went back to Excel in frustration. But I'd like to learn how to do this right in MathCAD. I'm sure this question has been asked before, but I'm having trouble finding an answer. The other topics about turning my range variable into a vector don't really solve the problem.

Any pointers?, and thanks in advance.

Aaron

2 replies

23-Emerald I
April 8, 2015

Rather than a range, build a vector. Feed your vector into the function, the result will be a vector, you can output vectors (and matrices) several different ways.

23-Emerald I
April 9, 2015
19-Tanzanite
April 8, 2015
The other topics about turning my range variable into a vector don't really solve the problem.

That is exactly what is required though

afox-21-VisitorAuthor
1-Visitor
April 8, 2015

Richard,

That was far simpler than I thought it would be. Thank you very much for the assist.