Loren on the Art of MATLAB

Results for: Robustness

Another Possible Surprise – Ignored NaN Values 9

Posted by Loren Shure,

Another Possible Surprise – Ignored NaN Values  Ever have some data that might have some NaN values? And you start doing computations with these data, expecting |NaN|s to propagate... Only to find later, that the |NaN|s only went... read more >>

What a Difference It Makes! 19

Posted by Loren Shure,

What a Difference It Makes!  I've been exploring some older functions in MATLAB recently and trying to characterize them. The function diff is one of them. And I realized it has a really unusual behavior when the optional dim input argument is omitted. ... read more >>

What Data Is Available? 5

Posted by Loren Shure,

What Data Is Available?  Yes, I know, data are, but the title just sounded terrible that way. Ever wonder what data you have stored in some files, particularly MATLAB MAT-files? Sometimes I'd like... read more >>

Ensuring Positive Values – Part 2 6

Posted by Loren Shure,

Ensuring Positive Values – Part 2  My last post started the discussion about how to ensure data values met certain constraints. The solutions I talked about were ones where you checked at certain places during a calculation, but the... read more >>

Ensuring Positive Values – Part 1 4

Posted by Loren Shure,

Ensuring Positive Values – Part 1  Do you sometimes need to be sure an array has only bounded, positive values? At least one customer asked about this recently and noted that it could be quite involved. Depending... read more >>

Empty Arrays with Flow of Control and Logical Operators 17

Posted by Loren Shure,

Empty Arrays with Flow of Control and Logical Operators  After reading last week's post on calculating with empty arrays, one of my colleagues mentioned some other behaviors with empty arrays that have tripped him up in the past. Today I will discuss... read more >>

Calculus with Empty Arrays 25

Posted by Loren Shure,

Calculus with Empty Arrays  MATLAB has had empty arrays since before I started using the program. When I started, the only size empty array was 0x0. When version 5 was released, empty arrays came along for the N-dimensional ride and got more shapely. ... read more >>

Evens and Odds 3

Posted by Loren Shure,

Evens and Odds  There are so many functions in MATLAB that sometimes users think that if they can't find the function they are thinking of, it's because they don't know the name. Sometimes that's true,... read more >>

Computational Geometry in MATLAB R2009a, Part II 37

Posted by Loren Shure,

Computational Geometry in MATLAB R2009a, Part II  I am pleased to welcome back Damian Sheehy for the sequel to his earlier Computational Geometry post. Contents ... read more >>

Computational Geometry in MATLAB R2009a, Part I 15

Posted by Loren Shure,

Computational Geometry in MATLAB R2009a, Part I  I'm pleased to introduce Damian Sheehy as this week's guest blogger. Damian is a geometry developer at The MathWorks, his background is in the area of geometric modeling and mesh generation. ... read more >>

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