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 451 - 460 of 539

for Versus while 33

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

Reversal of a sort 24

We can sometimes be motivated to reverse things in Boston. And I occasionally get asked how to reverse the sort direction from MATLAB. So instead of sorting A and then having B follow... read more >>

Iterating over Non-Numeric Values 25

Recently a colleague was hoping to write some code to iterate over fields in a structure. There are at least three different ways I can think of, some more straight-forward... read more >>

A Way to Create Reusable Tools 12

There are a lot of ways to create reusable tools and widgets in lots of programming languages, including MATLAB. Today I
want to illustrate creating a reusable visualization tool that can then be... read more >>

Monitoring Progress of a Calculation 38

Users sometimes want to monitor the progress of some calculation or simulation. Here's a recent example from the MATLAB newsgroup. Contents ... read more >>

Assignment with Repeated Indices 15

I have had customers ask me occasionally about what happens during an indexed assignment when indices are repeated. The answer is that it depends on how you do the... read more >>

GOTO Humor

GOTO Humor For those of you who wonder why MATLAB does not have a goto statement, you might look at this cartoon in addition to reading an earlier blog article I wrote. I am amused to see... 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 >>

MATLAB User Group in Boston 4

I know there are a large number of experienced MATLAB users who read this blog. If you happen to live in the Boston area and are interested in joining some like-minded... read more >>

Posts 451 - 460 of 539

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