The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Compile (.m) files to a build-in function
Replies: 3   Last Post: Dec 13, 2012 11:59 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Steven Lord

Posts: 18,038
Registered: 12/7/04
Re: Compile (.m) files to a build-in function
Posted: Dec 13, 2012 11:59 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Ricardo " <> wrote in message
> Thanks for the reply Steven
> Each time that the Matlab execute a "no build-in" function needs to
> compile and optimize their code.

Sort of. I don't really want to get into too many details, though.

> My question relates mainly because I want to use the ?Eval? function to
> execute code with loops too large. The ?Eval? function does not optimize
> the code and its performance drops exponentially. It would be interesting
> if there were some form of pre-build the code and then call this code
> through the ?Eval? function.

The solution is to write your code so that it does NOT use EVAL. There may
be very specific advanced maneuvers that require EVAL, but it should be your
LAST resort.

Steve Lord
To contact Technical Support use the Contact Us link on

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2017. All Rights Reserved.