Loren on the Art of MATLAB

Turn ideas into MATLAB

Note

Loren on the Art of MATLAB has been archived and will not be updated.

Posts 1 - 10 of 15

Results for: Structures

A Best Friend, struct2table 13

Sometimes it's nice to have a best friend. Sometimes I have more than one, context-dependent. I want to share my best friend today for dealing with struct arrays.... read more >>

Rename a Field in a Structure Array 11

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... read more >>

Concatenating structs 11

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... read more >>

From struct to dataset 14

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

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... read more >>

Deal or No Deal 21

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 of scalar... read more >>

Iterating over Non-Numeric Values 25

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... read more >>

Vectorizing Access to an Array of Structures 40

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

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... read more >>

Structures and Comma-Separated Lists 51

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... read more >>

Posts 1 - 10 of 15