Convert matrix into structure array
显示 更早的评论
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 个评论
James Tursa
2017-1-10
编辑:James Tursa
2017-1-10
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
2017-1-11
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
2017-1-11
编辑:Igor Jovanovic
2017-1-11
Walter Roberson
2017-1-12
Can you attach the dataset you are using for the European stocks (the CRSP data) ?
Igor Jovanovic
2017-1-12
Walter Roberson
2017-1-12
That pricesraw file has 4000 rows of 600 columns, but no headers. I cannot tell what each column corresponds to.
Igor Jovanovic
2017-1-12
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Cell Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!