Data extraction from stacked plot
9 views (last 30 days)
I want to extract data from the stacked plot generated , by extracting data i mean that whenever the user clicks on the staked plot , a set of values are displayed at the intersection of the plot and vertical line ( please refer to the figure to get more understanding of what i mean) , i want to extract these values and then write them to an excel sheet . Please help me to do that.
( I want the values displayed in the boxes to be written in an excel file )
ANKUR KUMAR on 14 Jul 2021
Edited: ANKUR KUMAR on 14 Jul 2021
Let us load random data.
tbl = readtable('patients.xls');
There must be value of x over which you wish to extarct all the values. Let us take 50 in this case.
values=[tbl.Height tbl.Weight tbl.Systolic tbl.Diastolic];