Loren on the Art of MATLAB

Turn ideas into MATLAB

M-Lint Live in Editor in R2006a 14

Posted by Loren Shure,

M-Lint is a tool new in MATLAB version 7 (Release 14) to check code for possible problems and report results. You can use it from the MATLAB command line, from the Current Directory Browser, and from the MATLAB Editor. To learn more about mlint, you might find this... read more >>

Working with structs 5

Posted by Loren Shure,

MATLAB has some functions that are specifically designed for exploring the contents of structures (entities known in MATLAB by the class struct). I find the functions isfield and fieldnames particularly helpful. The reason I raise this area of functionality is because... read more >>

Scalar Expansion and More 31

Posted by Loren Shure,

Last week I received email from a blog reader asking about extending the meaning of the arithmetic operators to do more than scalar expansion, and instead extend the expansion to singleton dimensions. In this post, I discuss the evolution of scalar expansion in MATLAB, talk about possible future designs, ... read more >>

Existence in MATLAB 12

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 >>

What’s the Big deal? 15

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 >>

Inverting Logic in an Algorithm 7

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 >>

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