Sample selection from a table
古いコメントを表示
Hello everyone. I'm new to MATLAB, I'm stuck on something and can't find a solution. I would be grateful if you could help me.
I have a dataset showing hundreds of patient names and medical fees they paid to the hospital. What I have to do is randomly select a group of patients from the dataset and perform various mathematical operations on the fees they pay. Then I want to remove these selected patients from the dataset and select a new group of patients from the updated dataset.
I used the dataset as a table and converted the patient names to row names for the identification of the payments (I do not know if this is the best way to connect patients with their payments.). However, I cannot make the selections according to the patient's name. When I use the payments for selection, I cannot see which patient paid the selected fees at the end of the procedure.
I'm also trying to figure out how I can remove the patients selected in the first phase from the dataset later on. Please see a look of my dataset below.
Patient_Name Medical Fee
Patient1 250$
Patient2 402$
Patient3 132$
Patient4 85$
Patient5 208$
I would be very happy if you could share your thoughts on these two issues. I really appreciate any help you can provide.
Kind regards.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Managing Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!