Loren on the Art of MATLAB

Arithmetic Associativity – Not So Fast 7

Posted by Loren Shure,

Arithmetic is associative, right? Well, in the world of paper and pencil, where you can often do calculations exactly, that can be true. However, in the computing world, where real numbers can't always be represented exactly because of working with finite precision datatypes, it turns out that you can't depend on the arithmetic to behave the way you were taught in grade school.... read more >>

Coding Best Practices – A Good Read 7

Posted by Loren Shure,

Coding Best Practices – A Good Read Coding Best Practices - A Good ReadI have written blogs before on coding best practices in MATLAB and they have always generated a lot of great feedback. I recently came across a language-neutral list of best practices for scientific computing, written by Greg Wilson of Software Carpentry.If you don't... read more >>

Seeking Symmetry in MATLAB 7

Posted by Loren Shure,

Sometimes I need to construct a matrix with certain symmetries. There are a bunch of tools in MATLAB that are well suited for such tasks. In today's post, I will mention the ones I use most often.... read more >>

Double Integration in MATLAB – Understanding Tolerances 4

Posted by Loren Shure,

In today's post, I am joined by Mike Hosea, a developer who occasionally works on integration routines for MATLAB. In recent releases, we added new integration routines, including integral2 for double integrals. Today we'll talk about some nuances in using this routine and adjusting the absolute and relative tolerances.... read more >>

Getting Data from a Web API in Parallel

Posted by Loren Shure,

I'd like to introduce this week's guest blogger Edric Ellis. Edric works for the Parallel Computing development team here at The MathWorks. In this post he will talk about using the parfeval command in Parallel Computing Toolbox.... read more >>

Annual Meeting of the American Geophysical Union 2013

Posted by Loren Shure,

MathWorks will have a booth at the annual AGU (American Geophysical Union) meeting this year, where you can expect to see me, Sarah Wait Zaranek, and Shyam Yadati. We will all be happy to show you some of the newest advancements in MATLAB and other MathWorks products. In addition, I will be speaking on Thursday from 1-1:30 PM at the Exhibit Hall Product Theater. My talk is entitled What's new in MATLAB for Earth & Ocean Sciences.... read more >>

Function is as functiontests

Posted by Loren Shure,

Today we have a post from guest blogger Andy Campbell to highlight a function-based approach for writing tests in MATLAB. We will be demonstrating how you can write simple functions that aid you in designing a physical system. This approach allows you to iterate quickly and improve your designs while protecting you from violating requirements met by earlier solutions.... read more >>

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