Rapid access and data manage of a table with cell array in the columns
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi everyone
I have a database like this
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/526779/image.png)
How can I rapidly access the data in cell columns (example: "forze", "H3raw", "H3p"...)
I would like to scroll the table rows and for each line doing operations or take data from the double array in those columns. I think i'm doing it in a very tedious way while maybe there are proper ways to save code and time. For example: calculate the maximum of each column of the H3raw cell column for each row and save the values in a table or array
Thanks
댓글 수: 0
채택된 답변
Duncan Po
2021년 2월 22일
You can use cellfun. For example, to compute the maximum of each column of the H3raw cell column for each row, do this:
cellfun(@max, dati.H3raw, 'UniformOutput', false)
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Tables에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!