How do I use the values in a .txt file to create a stacked bar graph?
9 views (last 30 days)
Show older comments
I've already been successful at opening the file and obtaining the values
fileID = fopen('report_data.txt','r');
patientName=fgetl(fileID);
dateOfBirth=fgetl(fileID);
notes=fgetl(fileID);
healthy_exposed = fgetl(fileID);
pus = fgetl(fileID);
necrotic = fgetl(fileID);
ulcer_stage = fgetl(fileID);
area = fgetl(fileID);
volume = fgetl(fileID);
fclose(fileID);
But I'd like to take healthy_exposed, pus, and necrotic and create a stacked bar graph.
0 Comments
Answers (1)
Dishant Arora
on 26 Mar 2014
Edited: Dishant Arora
on 27 Mar 2014
bar( [str2num(healthy_exposed)', str2num(pus)', str2num(necrotic)'], 'stacked')
4 Comments
See Also
Categories
Find more on Low-Level File I/O 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!