Loren on the Art of MATLAB

Results for: Cell Arrays

Partitioning a Vector 9

Posted by Loren Shure,

Recently on the MATLAB newsgroup, there was a thread asking how to split up a vector into pieces which were each monotonically increasing by the value 1. The post got several answers which I did not read first. Here's my thinking.... read more >>

Dealing with Cells 37

Posted by Loren Shure,

Dealing with Cells  A customer recently asked me this question at the MATLAB Virtual Conference. Contents ... read more >>

Optional Arguments Using Empty as Placeholder 11

Posted by Loren Shure,

Optional Arguments Using Empty as Placeholder  I recently posted about optional input arguments and how to override default values. Gautam mentioned wanting to allow empty inputs as defaults. Contents ... read more >>

Nice Way to Set Function Defaults 37

Posted by Loren Shure,

Nice Way to Set Function Defaults  Last week, I wrote a post on the switch statement in MATLAB. One theme in the comments was about using switch (or not!) for setting default values for input arguments that users didn't initialize. I realized that there is... read more >>

Deal or No Deal 21

Posted by Loren Shure,

Deal or No Deal  This post continues in the theme from my last post, where people routinely come to me on a topic. Today I want to distinguish between indexed assignment, where you can take advantage... read more >>

Cell Arrays and Their Contents 117

Posted by Loren Shure,

Cell Arrays and Their Contents  I've written several blog articles so far on structures, and not quite so much on their soulmates, cell arrays. Just last week, at the annual MathWorks Aerospace Defense Conference (MADC), I had several people ask for help on cell arrays and indexing. Couple that with the weekly questions on the... read more >>

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