Loren on the Art of MATLAB

Results for: Memory

New MAT-File Functionality in R2011b 11

Posted by Loren Shure,

New MAT-File Functionality in R2011b  Today I’d like to introduce guest blogger Sarah Wait Zaranek who works for the MATLAB Marketing team here at The MathWorks. Sarah previously has written about speeding up code from a customer to get acceptable performance. She and I will be... read more >>

Double or Nothing? No Joking! 16

Posted by Loren Shure,

Double or Nothing? No Joking!  Note the date, folks. I am using this excuse to be a bit light-hearted today. I saw the following quote on someone's door here at MathWorks. ... read more >>

Possible Test Scores 14

Posted by Loren Shure,

Possible Test Scores  Walter Roberson, frequent contributor to the MATLAB newsgroup, posed the following question to me to use as the starter idea of a blog. Q: Suppose there is a multiple-choice quiz,... read more >>

In-place Operations on Data 45

Posted by Loren Shure,

In-place Operations on Data  Recently I mentioned that I would describe a relatively new optimization we have for MATLAB code that allows some function calls to operate on variables without allocating more memory for the result. ... read more >>

Selecting Data and Surrounding Values 6

Posted by Loren Shure,

Selecting Data and Surrounding Values  I recently was working with Dave Schoppik on extracting a subset of elements from his dataset. In his lab, they work to understand the ways our brains enable us to move. ... read more >>

How for Works 18

Posted by Loren Shure,

How for Works  Last week I touched on the difference between using 1:N and [1:N] as the expression in a for statement. I have gotten enough more questions recently on how for works in MATLAB that it seems time for its own post. ... read more >>

What Are You Really Measuring? 9

Posted by Loren Shure,

What Are You Really Measuring?  I had an interesting encounter with a colleague, Bob, last week. We were talking about timing some calculations and we realized that the written code was actually measuring something different. Here's... read more >>

Memory Management for Functions and Variables 68

Posted by Loren Shure,

Memory Management for Functions and Variables  People have different ideas about what costs a lot, in terms of memory, in MATLAB. And sometimes people don't know the details. Today I am going to talk about when MATLAB makes... read more >>

More on expansion: arrayfun 11

Posted by Loren Shure,

More on expansion: arrayfun Since there seems to be so much interest in the topic of going beyond scalar expansion, it seems worth talking about yet some other ways to achieve the same goals. I am very appreciative of the thoughtful comments we've received so far on this topic and I know we... read more >>

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