Loren on the Art of MATLAB

Turn ideas into MATLAB

Note

Loren on the Art of MATLAB has been archived and will not be updated.

Posts 21 - 30 of 44

Results for: Common Errors

Clearing the Air 30

We have heard repeatedly over the years that users would like a tool to help clean up the workspace by choosing selected variables to retain. The function clear, has logic... read more >>

Nested Functions and Variable Scope 35

I get a parade of questions about which variables are available to nested functions and which variables, used in nested functions, are part of the nesting function workspace. So today I thought... read more >>

Should M-Lint Try to Make a Recommendation? 14

At The MathWorks, we continue to explore ways to ease your programming learning curve and help you write better code. As such, we have been discussing how stringent to make... read more >>

Defensive GUI Programming 33

Today I want to talk a little bit about defensive programming for GUIs (graphical user interfaces) and other programs with
graphics callbacks.
 
Contents

What Can Go Wrong
Don't Depend on... read more >>

for Versus while 33

A reader suggested I discuss the difference in use of MATLAB's for and while constructs. Contents ... read more >>

Make Code N-D Safe 4

I've recently been asked some questions about programming safely to account for N-dimensional data. Techniquest that are tried-and-true for two dimensions don't all scale to N... read more >>

sum Things to Consider 16

I was just helping someone debug a piece of code that was giving an incorrect answer. The code returned an output with a shape different than the coder expected. I... read more >>

Indexing Terminology 11

Someone recently asked me to discuss X-Y versus row-column indexing. Contents Two Conventions ... read more >>

Indexed Assignment 12

Recently some folks at The MathWorks wondered about the difference of behavior of variable creation versus assigning values into an existing array. I thought I'd address this... read more >>

Purpose of inv 33

I have received comments from several savvy customers suggesting that we remove the function inv from MATLAB. The reasons are because people who don't know enough numerical analysis... read more >>

Posts 21 - 30 of 44