Loren on the Art of MATLAB

Results for: Structures

Rename a Field in a Structure Array 12

Posted by Loren Shure,

Rename a Field in a Structure Array  I'm Matthew Simoneau, a software developer at MathWorks focusing on technical communication and social computing. My friend Bryan May, an occasional MATLAB programmer, called me with a question the other day. He was working with a... read more >>

Concatenating structs 11

Posted by Loren Shure,

Concatenating structs  From time to time, I get asked or see queries about how to concatenate two struct arrays to merge the fields. There's even a section in the documentation covering this topic. I thought I'd show it here to help people... read more >>

From struct to dataset 14

Posted by Loren Shure,

From struct to dataset  When I got to work last Friday, I saw an email discussion, on behalf of a customer, trying to find a good way to add a new field to a struct array. ... read more >>

Structure Initialization 50

Posted by Loren Shure,

Structure Initialization  This post continues in the theme of other recent ones, questions frequently posed to me (and probably others). It has to do with initializing structures. There is a healthy set of... 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 >>

Iterating over Non-Numeric Values 25

Posted by Loren Shure,

Iterating over Non-Numeric Values  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 than others.... read more >>

Vectorizing Access to an Array of Structures 40

Posted by Loren Shure,

Vectorizing Access to an Array of Structures  Though I have written about this topic before, I continue to get questions on working with arrays of structures. So I thought I would focus on that alone today. ... read more >>

Working with Arrays of Structures 30

Posted by Loren Shure,

Working with Arrays of Structures  Though I have covered this topic somewhat in the past, it seems like a good time to refresh the information. There are recent posts on the MATLAB newsgroup relating to this topic... read more >>

Structures and Comma-Separated Lists 52

Posted by Loren Shure,

Structures and Comma-Separated Lists  I have seen an increasing number of questions on structures and extracting information from them in a vectorized way. Though I've already covered portions of this topic in earlier posts, I'll try... 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 >>

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