Extract data from table starting at a certain position
조회 수: 10 (최근 30일)
이전 댓글 표시
Hello Everybody,
I have a question about extracting data from a table. I have one table with data (1000x825), its data from several patients at several time points.
Then, I have another table with percentages, these % stand for the point of data I want to extract (beginning to %number AND %number to end). So the point is to split the table in two at specific points. However, this number is different for every patient and at every time point.
Is it possible to do this and how?
댓글 수: 1
Arun Mathamkode
2018년 1월 30일
The question is very confusing. First of all it is not clear whether "table" means "the MATLAB table data type" or something else. I am assuming it is a 2D MATLAB table with data of 1000 different patients at 825 different time points. Based on my understanding, now you want to split the table based on data from another table. Is it a vector? But you also say that that splitting number is different for every patient and every time instant so it also needs to be a 2D table of the same size. Now you want to split a 2D table based on another 2D table data of the same size! It will be hard to answer without knowing much details.
답변 (1개)
Peter Perkins
2018년 1월 30일
It sounds like maybe you have a table (the MATLAB data type) with multiple rows for each patient, and you want to split the data for each patient based on some other set of values. This sounds like a job for varfun with the patient as the grouping variable, but your description is not very clear.
Perhaps you you provide a short example of what you have and what you need to compute.
댓글 수: 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!