How can i extract a field from a struct based on some condition?
Show older comments
I have two structs containg fields eg. id which is 'time of arrival' and id_allocated which is 'id to which an organ was allocated to' and blood group of donor and reciever.
I want to check who got allocated in year 1, year 2 and so on, which I am able to accomplish. My problem is to find the allocation time according to bloodgroup. I am not able to make separate struts based on bloodgroup.
1 Comment
Sindar
on 13 May 2020
It sounds like tables would work better than structs here.
But, if you are set on a struct, give us more info on it's structure (heh). Probably you can just copy the command line summaries
Answers (0)
Categories
Find more on Linear Algebra 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!