Get information about the function handle:... read more >>

# Use nested functions to memoize costly functions 27

Posted by **Loren Shure**,

**Category:**- Efficiency,
- Function Handles,
- Memory,
- New Feature

Blogs

Posted by **Loren Shure**,

Get information about the function handle:... read more >>

**Category:**- Efficiency,
- Function Handles,
- Memory,
- New Feature

Posted by **Loren Shure**,

exist can be called with one argument (a string) to test if that specific name is known and available in MATLAB in any form. If we program carefully and check the output result of exist, then we can be sure we know whether we are dealing with a MATLAB... read more >>

**Category:**- Efficiency,
- Robustness

Posted by **Loren Shure**,

So, what is the big deal? To start with, this week marks my 19th anniversary at MathWorks. Never would I have guessed back then what I am up to now, including talking about MATLAB with so many customers. I look forward to many more years working with... read more >>

**Category:**- New Feature,
- Structures

Posted by **Loren Shure**,

A while ago, a colleague needed to use the sinc function to interpolate some channel data posted by the IEEE 802.15.3a working group. The files they supplied were large and the interpolation took a while. Seems like a job worthy inspecting the code and using the profiler (see references... read more >>

Posted by **Loren Shure**,

Until Release 14 (MATLAB 7), feval was the way to evaluate a function handle. By that I mean you might write code something like this: ... read more >>

**Category:**- Function Handles,
- Readability

Posted by **Loren Shure**,

I recently wrote an article on Evading eval. A couple of users asked me how to avoid using eval in the case post under Code Clarity / Readability. The answer is you can't, unless you rethink the code altogether. ... read more >>

**Category:**- Readability,
- Structures

Posted by **Loren Shure**,

If you are a regular reader of the MATLAB Usenet newsgroup, comp.soft-sys.matlab, found on the MathWorks User Community page, you are probably familiar with repeated advice to not use the MATLAB function eval . Today I plan to tell you more about why this is generally good advice.... read more >>

**Category:**- Readability

Posted by **Loren Shure**,

In MATLAB 7, Release 14, we enhanced two useful and often used functions, sort and find in part because we noticed some common coding patterns in our MATLAB code and customers'. With the older patterns we found, we felt we could create new options in these functions that... read more >>

**Category:**- New Feature

Posted by **Loren Shure**,

Use dynamic field references, the notation .(), where possible, instead of setfield, getfield, and eval.... read more >>

**Category:**- Indexing,
- Structures

Posted by **Loren Shure**,

One of my favorite things about MATLAB is that I can write a mathematical algorithm using the same notation appearing in a technical book or paper. For algorithms that are naturally matrix-based, the economy and clarity of the MATLAB code contribute to the program's elegance.... read more >>

*These postings are the author's and don't necessarily represent the opinions of MathWorks.*

## Recent Comments