I'm having a problem getting cell data into usable forms
조회 수: 1 (최근 30일)
이전 댓글 표시
For my latest HW I've been given a lot of data in the form of several 175x1 cells, each containing a single column of Nx1 doubles where N is from ~20 to 70. I'm required to use this data to perform histograms of various types, determine directional vectors based upon these points, and similar functions, but can't figure out good ways to access the data without going row-by-row hundreds of times. The cell2mat function just gives me a 5413x1 matrix, making it hard to do much productive with the data. Is there some easy step I'm missing here? Thanks for any help.
댓글 수: 0
채택된 답변
Star Strider
2016년 9월 26일
Without your actual data it’s difficult to give an exact Answer. However, if your cell array resembles this one, see if taking the transpose of your cell array solves your problem.
Example:
c = { randi(9,10,1); randi(9,10,1); randi(9,10,1)};
d = cell2mat(c');
댓글 수: 4
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!