report_data.txt contains
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/159345/image.png)
I want to grab ( fgetl(fileID) ?) healthy_exposed, pus, and necrotic and create a stacked bar graph.
figure; bar(1:3, cat(1,[healthy_exposed, pus, necrotic]), 0.5, 'stack'); % Adjust the axis limits
axis([0 4 0 100]); % Add title and axis labels
title('Chronology of Wound Specifications'); xlabel('Date of Visit'); ylabel('Percentage'); % Add a legend
legend('Healthy', 'Infection', 'Necrotic');
But I'm not 'grabbing them' properly. How do I do that?
Best Answer