Stacked bar chart, MATLAB Programming

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:

2000 2001 2002 2003 2004 2005 2006 2007
72 74 74 77 80 83 89 93
250 270 300 310 350 390 410 380

Load the information into a matrix from a file called ‘houseafford.dat'. Create a figure with two subplots as shown below:

2392_Stacked Bar Chart.png

The left plot is a horizontal stacked bar chart to display the information shown as follows, with an appropriate title. Note: Look up the document for the bar function and use the ‘stacked' option; May set the ‘XData' property to put the years on the axis as shown in the figure.

The right plot shows the ratio of the home price to the income is called the housing affordability index. Calculate this for every year and plot it as in the figure. The x-axis should show the years (e.g., 2000-2007) as the figure below.

Get the handle to figure and change its window size to 900x400. Save your script in a .m file called ‘yourname_lab6_1.m".

Posted Date: 3/13/2013 3:39:25 AM | Location : United States







Related Discussions:- Stacked bar chart, Assignment Help, Ask Question on Stacked bar chart, Get Answer, Expert's Help, Stacked bar chart Discussions

Write discussion on Stacked bar chart
Your posts are moderated
Related Questions
How to design a FIR filter using ANFIS in MATLAB

i want matlab programming on johnson''s sequencing rule

In many applications, including ?nancial mathematics, ?nding zeros of a function f(x) = 0 (4) is paramount. One of the simplest method is the Bisection Method. The bisection

Why Function stubs are used?

You are a quant analyst reporting directly to a portfolio manager. Your manager requires you to generate a simple code to compute several statistics for the following potential por

Implement a single-layer perceptron and train it to translate the digital letters given in the file "pattern1" into the corresponding ASCII representation. Plot a training curve an

MATLAB is a high-performance language for technical computing. It integrates computation, visualization, and programming in an easy-to-use environment where problems and solutions

Creating matrix variables- arguments: The CAT arguments dimensions are not reliable. The Iterators can also be used for the values on the rows by using the colon operator;

wite a function that will take In a simplex an an associated and return the nitial feasible solution of the tableau x as a column vector as well as the objective the objective fun

Matlab Programming Vector Algebra : Create a program package for calculation of distances and intersections of lines and planes. Plot the results in a graphical representation