Stacked bar chart, MATLAB Programming

Assignment Help:

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".


Related Discussions:- Stacked bar chart

Function program, write a function program to compute a standard deviation ...

write a function program to compute a standard deviation of a number

Matlab script that will prompt the user to enter the launch , Consider the ...

Consider the analytic solution of the projectile problem described. Write a MATLAB script that will prompt the user to enter the launch speed and angle, and will compute the peak h

How to open simpower, How to Open Simpower: 1. Open MATLAB 2. ...

How to Open Simpower: 1. Open MATLAB 2. In the "Command Window" write ' simulink ' and press Enter or click on the Simulink icon. 3. Simulink Library Browser w

DC Motor, I need assignment to finish.

I need assignment to finish.

Off-line signature verification and recognition, Project: "An Efficient Hum...

Project: "An Efficient Human Identification Using Gait Analysis" I want apply/follow the same methodology (Methods/Algorithms) for this paper ("Human Gait Recognition Using Bezi

Example of hold and legend function, Example of Hold and legend function: ...

Example of Hold and legend function: Running this script will generate two individual figure windows. If there is not any other active figure window, the first, that is the ba

Referring to and modifying elements, Referring to and Modifying Elements: ...

Referring to and Modifying Elements: The particular element in a vector is accessed by using the name of the vector variable and the element number (or subscript, or index) in

Finding a given number is odd or even in array, to find given number is odd...

to find given number is odd or even in an array with explanation and flow chart

Basic algebra, how to find absolute value of a number

how to find absolute value of a number

Expand a matrix, Expand a matrix: To expand a matrix, an individual el...

Expand a matrix: To expand a matrix, an individual element could not be added as that would mean there would no longer be the similar number of values in every row. Though,

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd