Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
how to pull a matrix of data out of a cell array of structs

Subject: how to pull a matrix of data out of a cell array of structs

From: Kirk

Date: 19 Mar, 2012 15:49:10

Message: 1 of 1

I have a stuct of 500 cell arrays and each cell array contains a stuct, such that the "bottom layer" of data has the stucture:

S{1 row, 500 columns}.s <1 x 1200 double>

ultimately I want to create a matrix of the 500 cell array iterations of s <1 x 1200 doubles> with the shape 500 x 1200

I can grap a single element from the first cell array with

M = S.s

However, any attempt to grap more than one (or anything other that the first cell array {1,1} result in various errors. For example:

M = S{:,:}.s;
Field reference for multiple structure elements that is
followed by more reference blocks is an error.

Any suggestion would be much appreciated.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us