×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Programming graph?

Programming graph?

Programming graph?

(OP)
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!

RE: Programming graph?

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: Eng-Tips.com Forum Policies

RE: Programming graph?

(OP)
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.

RE: Programming graph?

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.
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login



News


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close