Extract data from table starting at a certain position

10 Ansichten (letzte 30 Tage)
TVC
TVC am 26 Jan. 2018
Beantwortet: Peter Perkins am 30 Jan. 2018
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 Kommentar
Arun Mathamkode
Arun Mathamkode am 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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Peter Perkins
Peter Perkins am 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.

Kategorien

Mehr zu Tables finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by