bio_img_videos

Stuart’s MATLAB Videos

Watch and Learn

Converting a Cell Array of Heterogenous Structures to a Structure Array

When I make a request to a web service I often use, I normally get back a struct array. Now, however, I have received a cell array of structs and I suspect that the structs have different fields.

I need to figure out how to convert this cell array into a homogenous struct array.

Features covered in this code-along style video include:

  • fields, cellfun
  • struct2table

Play the video in full screen mode for a better viewing experience. 

|
  • print

Comments

To leave a comment, please click here to sign in to your MathWorks Account or create a new one.