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
You are to submit your completed MATLAB code and a short written report through the Blackboard upload facility as a single zip ?le. This zip ?le should consist of your ?nite volume

Design a controller which regulates flow and compensate pressure to my desire value in simscape.

Calling a Function: Here is an illustration of the call to this function in which value returned is stored in the default variable ans: >> calcarea(4) ans = 50.2655

Introduction to Matlab: The MATLAB is a graphical and mathematical software package; it has graphical, numerical and programming capabilities. It has built-in functions to do

i have a problem in doing my project which detects image forgery detection using resampling technique any one please help in writing my program

Write a MATLAB program to find the undamped natural frequencies and modes of an electric car treating it as a four degree of freedom system. Determine the undamped natural frequenc

The fuel consumption of a certain make of car may not be exactly that rated by the manufacturer. Suppose ten cars of the same model were tested for combined city and highway fuel c

How do I compute and plot a temperature profile along the x axis from -6 to 6 given the equation for steady state heat conduction and boundary conditions

Creating Matrix Variables: Creating a matrix variable is actually just a generalization of creating a row and column vector variables. That is, the values within the row are s