Convert matrix into structure array
Show older comments
Hello everyone,
I am trying to execute a code but it requires data matrix (605x1006x3) to be structure array. How can I convert the matrix into structure array? Here is how the data looks like.

Thanks in advance, Igor
7 Comments
James Tursa
on 10 Jan 2017
Edited: James Tursa
on 10 Jan 2017
Please post the relevant portions of the code you are using. If you are getting an error message, copy & paste the entire error message (including the offending line of code) for us to see.
Walter Roberson
on 11 Jan 2017
How does your 605x1006x3 correspond to the structure array? Does each row correspond to a structure member? Should the columns for each row be broken up between the 9 fields, and if so in what proportion?
I can see how the data in the structure could potentially be reorganized as a 2D array, but I do not see anything there that might correspond to the third dimension ? With the x 3 final dimension that is suggestive that you have an image as input; I do not see anything in the structure array that looks like it might correspond to an image.
Igor Jovanovic
on 11 Jan 2017
Edited: Igor Jovanovic
on 11 Jan 2017
Walter Roberson
on 12 Jan 2017
Can you attach the dataset you are using for the European stocks (the CRSP data) ?
Igor Jovanovic
on 12 Jan 2017
Walter Roberson
on 12 Jan 2017
That pricesraw file has 4000 rows of 600 columns, but no headers. I cannot tell what each column corresponds to.
Igor Jovanovic
on 12 Jan 2017
Answers (0)
Categories
Find more on Cell Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!