A file houseafford.dat stores on its three lines years, median incomes and median home prices for a city. The dollar amounts are in thousands. For example, it might look like this:
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:12| Question number:17.12
All Answers
total answers (1)
Ch12Ex17.m
% Read in median incomes and house prices from a file
% and plot using a stacked bar
load houseafford.dat
h = barh(houseafford(2:3,:)','stacked');
xlabel('$')
ylabel('Year')
set(h,'Xdata',houseafford(1,:))
title('Median Income and Home Prices')
need an explanation for this answer? contact us directly to get an explanation for this answer