Loren on the Art of MATLAB

Turn ideas into MATLAB

Results for: Structures

Concatenating structs 11

Posted by Loren Shure,

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

From struct to dataset 14

Posted by Loren Shure,

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. So this post will start with that problem, and... read more >>

Deal or No Deal 21

Posted by Loren Shure,

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 expansion, and assignment to several output arrays, often
arising from a comma-separated list from cell or struct arrays.... read more >>

Working with Arrays of Structures 30

Posted by Loren Shure,

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 such as this one. ... read more >>