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

Control system, 1. Design a suitable phase-lead controller. You should expl...

1. Design a suitable phase-lead controller. You should explain in detail how your design has been developed. Your solution should include Bode plots constructed both manually and

#GUI, #create a matlab GUI for designing common emitter amplifier which pro...

#create a matlab GUI for designing common emitter amplifier which produces AC load lines based on the component values

Variable numbers of arguments, Variable numbers of arguments: In the f...

Variable numbers of arguments: In the functions there have been a fixed number of input and output arguments. For illustration, in the function below, there is one input argum

Ray tracing equations, i want to write a program in mat lab for optimizing ...

i want to write a program in mat lab for optimizing the design of lens help me how could i i am new user of matlab but previously i have work on C++.

Towers, i need someone to write a matlab code to solve a model.

i need someone to write a matlab code to solve a model.

Image processing, Hello sir, I am Bharat Prajapati.I am working on Copy-mov...

Hello sir, I am Bharat Prajapati.I am working on Copy-move forgery detection using 2D-DWT transform.How to code in matlab to detect copy-move forgery in the given image.Please help

Shift a signal and then add, I have a biological signal need to be shifted ...

I have a biological signal need to be shifted by 12.5 ms and then add all the shefted signals together

What are the matlab system parts, The MATLAB system having of five main par...

The MATLAB system having of five main parts: * Handle Graphics. * The MATLAB working environment. * The MATLAB language. * The MATLAB mathematical function library.

User-defined function, Your functions will allow you to create the followin...

Your functions will allow you to create the following graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and t

Matlab to produce numerical and analytical solutions, This assignment is mo...

This assignment is motivated by the use of flybys of planets / moons in spacecraft missions to alter a spacecraft's trajectory (flight path). Planetary flybys can be used to not on

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