Hello,
You can start by reading data from excel by using readtable. You can find more information about readtable here.
To draw the graph, you can use the plot function. To draw a pie chart you can use the function pie. I am providing a sample code here to help you
gender=[50 45 40; 50 55 60] %The table which I got from the excel
plot(gender(1,:),gender(2,:)) %using plot function, the first row is for male and the second for females
pie(gender(:,1)) % plotting a pie chart for all rows and with the first column( year 2021)
Hope it helps