How do I use the values in a .txt file to create a stacked bar graph?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Dishant Arora
2014년 3월 26일
편집: Dishant Arora
2014년 3월 27일
bar( [str2num(healthy_exposed)', str2num(pus)', str2num(necrotic)'], 'stacked')
댓글 수: 4
참고 항목
카테고리
Help Center 및 File Exchange에서 Graphics Object Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!