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

댓글

댓글을 남기려면 링크 를 클릭하여 MathWorks 계정에 로그인하거나 계정을 새로 만드십시오.