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 51 - 60 of 66

Results for: Best Practice

Creating Sparse Finite-Element Matrices in MATLAB 49

I'm pleased to introduce Tim Davis as this week's guest blogger. Tim is a professor at the University of Florida, and is the
author or co-author of many of our sparse matrix functions (lu, chol,... read more >>

Class Initialization for Variables 10

A while ago, I wrote an article sharing some ideas for Programming for Multiple Datatypes. Recently, a colleague asked me a related question for writing some M-code to be used in an... read more >>

Let Me Count the Ways 9

In the course of many applications, we sometimes need to tally up counts for different purposes, e.g., investigating the distribution of some data or equalizing gray tones in... read more >>

Some Ways to Create Function Handles 36

I recently was asked the best way to create function handles, given the names of functions. This came up because I recommended that we should generally remove instances of... read more >>

Bottom Line on Logical 14

I just posted a blog on logical operator behavior in MATLAB and I want to be clear about the bottom line. Use the newer MATLAB operators || and &&, in the context of expressions for if and... read more >>

A Logical Story 7

Let me set the stage for today's blog. Logical variables have been part of MATLAB from the early days. They are particularly useful in constructs involved flow-of-control,... read more >>

Controlling Warning Messages and State 31

There are occasional posts on the MATLAB newsgroup, such as this one, where people ask how to control when they see various warnings. One reason people might want this is to control... read more >>

Evolution of the Function isfield 10

Today I want to talk a bit about the function isfield and some of the history of its implementation. isfield has been built into MATLAB for a few releases now. We felt it was important... read more >>

Working with Low Level File I/O and Encodings 44

I'm pleased to introduce Vadim Teverovsky, our guest blogger this week, who gives us his take on MATLAB low level file I/O and how it works with encodings. ... read more >>

Constants 10

Users have occasionally asked how to create and use constants in MATLAB. Here's one such example. In some cases, they would like to create a constant that other users or programs can't... read more >>

Posts 51 - 60 of 66