# More on expansion: arrayfun11

Since there seems to be so much interest in the topic of going beyond scalar expansion, it seems worth talking about yet some other ways to achieve the same goals. I am very appreciative of the... 更多内容 >>

# Scalar Expansion and More31

pre.codeinput { background: #F9F7F3; padding: 10px; border: 1px solid rgb(200,200,200); } @media print { pre.codeinput {word-wrap:break-word; width:100%;} } span.keyword... 更多内容 >>

# Nested Function Interaction with Global Variables7

Recently on two different occasions, people have asked me to help debug their nested function< code. I was struck by the similarity of their problems and today will show you the problem and some... 更多内容 >>

# Use nested functions to memoize costly functions27

Some languages provide ways to store results of costly calculations so if the calculation had been performed before, it need not be repeated when requested later. There is a way to accomplish this... 更多内容 >>

# Existence in MATLAB12

Users have needed access to information about the existence of variables, files, etc. in MATLAB for a long time. The function exist allows us to programmatically check for these entities. exist... 更多内容 >>

# What’s the Big deal?15

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... 更多内容 >>

# Inverting Logic in an Algorithm7

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... 更多内容 >>

# Mental Model for feval10

What's your mental model for when to use the MATLAB function feval? Until Release 14 (MATLAB 7), feval was the way to evaluate a function handle. By that I mean you might write code something... 更多内容 >>

# More on eval2

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... 更多内容 >>