You could try a bar chart like this:
clf
chanceDisease = [.6 .7]; age = [30 40];
bar(age, chanceDisease)
set(gca, 'YLim', [0 1])
ylabel('Chance of getting Disease') xlabel('Age')
You could try a bar chart like this:
clf
chanceDisease = [.6 .7]; age = [30 40];
bar(age, chanceDisease)
set(gca, 'YLim', [0 1])
ylabel('Chance of getting Disease') xlabel('Age')
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!