Loren on the Art of MATLAB

Turn ideas into MATLAB

Results for: 2006

Displaying Numbers in MATLAB 7

Posted by Loren Shure,

The way MATLAB displays numbers sometimes confuses users. Occasionally someone posts a concern to the MATLAB newsgroup that the calculation just performed was done to only 4 digits but the user expected more decimals. Assuming the code is "typical" in... read more >>

Finding Strings 24

Posted by Loren Shure,

Over the years, MATLAB has become a friendlier environment for working with character information. MATLAB has a rich set of text handling functions, ranging from the simple, to the all-powerful regexp functionality (covered here). I'm going to cover a few of... read more >>

Working with Arrays of Structures 30

Posted by Loren Shure,

Though I have covered this topic somewhat in the past, it seems like a good time to refresh the information. There are recent posts on the MATLAB newsgroup relating to this topic such as this one. ... read more >>

A Logical Story 7

Posted by Loren Shure,

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, such as if and while statements. But MATLAB, being an array-oriented language, needs... read more >>