How can I extract the values form the cell array?
이전 댓글 표시
I have a cell array as follow:
[{'name': 'Monday', 'data': [0, 0, 0, 0, 0, 0, 0, 0, 44, 56, 58, 57, 62, 71, 73, 64, 47, 29, 0, 0, 0, 0, 0, 0]}, {'name': 'Tuesday', 'data': [0, 0, 0, 0, 0, 0, 0, 0, 60, 66, 61, 81, 91, 85, 67, 45, 0, 0, 0, 0, 0, 0, 0, 0]}, {'name': 'Wednesday', 'data': [0, 0, 0, 0, 0, 0, 0, 0, 60, 98, 84, 67, 72, 76, 69, 53, 0, 0, 0, 0, 0, 0, 0, 0]}, {'name': 'Thursday', 'data': [0, 0, 0, 0, 0, 0, 0, 0, 88, 82, 50, 43, 58, 69, 63, 44, 0, 0, 0, 0, 0, 0, 0, 0]}, {'name': 'Friday', 'data': [0, 0, 0, 0, 0, 0, 0, 0, 57, 90, 100, 90, 81, 74, 62, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, {'name': 'Saturday', 'data': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, {'name': 'Sunday', 'data': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}]
Now i need to extract the values for each day in a able contain the day and its values as shown below;
Monday Tuesday ....
0 0
0 0
0 0
0 0
044 60
58 66
.... ....
Kindly suggest me if there is any function to deal with this.
Thank you in advances
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Tables에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!