×
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!
  • Students Click Here

*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

Jobs

Good way to catalog Matlab code?

Good way to catalog Matlab code?

Good way to catalog Matlab code?

(OP)
My place of work has a large number of custom Matlab functions, but a lot of stuff gets rewritten just due to the fact that none of the individual programmers (myself included) really know what has already been done.

So...does anyone have a good solution for aggregating code? The only requirement is that it has to be hosted from our internal network (no internet-based search engines). OSS is welcomed.

Ideally, I'd like something like a VB/C dll... But, I don't think Matlab supports such a thing...

RE: Good way to catalog Matlab code?

A quick method is to create a preparsed pseudocode file using the pcode function of your m-file and put the p-file on the network.

or

Use the Matlab Compiler toolbox to create a standalone executable program or a dll.

RE: Good way to catalog Matlab code?

It all depends on how much effort YOU want to put in.  Most code, written for personal usem, tends to short on documentation and commentary.  My experience has been that most engineers tend to rewrite, rather than to spend time  to figure out if some sparsely documented code is even applicable.

How is the code validated?  Would someone really use a canned routine without knowing whether it is correct?  

Any canned C-code would need to have a completely intuitively obvious interface with no room for errors.  This would require substantial amounts of up front work to develop these interfaces and validate them.

Lots of companies talk about calculation code management, but I'm not convinced that anyone has the time or energy to make it a viable situation.  My own Mathcad calcs tend to be cryptic, even to myself.

TTFN

FAQ731-376: Eng-Tips.com Forum Policies


RE: Good way to catalog Matlab code?

Additionally, source code is still required.  We've got about 5 different versions of a particular type of calculation, and invariably, someone wants a different output or a different analysis, and that requires modification of the source code to generate something new.

TTFN

FAQ731-376: Eng-Tips.com Forum Policies


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!


Resources