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!