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 Center および File ExchangeTables についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by