Extract data from table starting at a certain position

조회 수: 10 (최근 30일)
TVC
TVC 2018년 1월 26일
답변: Peter Perkins 2018년 1월 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
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
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.

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by