Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Programming graph?

Status
Not open for further replies.

kpb123

Electrical
Jul 28, 2010
3
I'm used to MATLAB, but this new job has me using MATHCAD instead. Normally, I would use M-files to code what I want to do, and automate the whole process. MATHCAD's programming functionality seems quite limited. I am curious to know if it is possible to import data from a text file, parse the columns of that data into separate vectors, and then plot the data, all within a program like I can do with MATLAB, or do I have to click and open a new graph each time I want to plot data. I have multiple data files that need to be imported and the ability to automate the process would save me a lot of time.

Thanks!
 
Replies continue below

Recommended for you

It sounds reasonably doable, depending on the nature of the data files. There are functions for reading input files of various sorts, and other functions that allow you parse such files for specific sets of data, etc.

TTFN

FAQ731-376
 
I've figured out how to import data which is not hard, but what I really want to do is write a program that can load multiple files onto separate data sheets, analyze that data in various ways, and then plot the data. Just write and run the code and be done, and not have to click and open each new graph, edit the titles, manipulate the data, etc. In MATLAB it requires 1 M-file. I'm not sure if MATHCAD can even do that.
 
I haven't done this, but check Developer's Reference|Automation Interfaces|The Mathcad Automation API in the help files. Looks like it could be done.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor