Extract data from table starting at a certain position
10 views (last 30 days)
Show older comments
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 Comment
Arun Mathamkode
on 30 Jan 2018
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.
Answers (1)
Peter Perkins
on 30 Jan 2018
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 Comments
See Also
Categories
Find more on Tables in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!