Question
it has to be in matlab thank you! Load the built-in Quality of Life data set in Matlab using the command load cities.mat; Create a
it has to be in matlab thank you!
Load the built-in Quality of Life data set in Matlab using the command
load cities.mat;
Create a figure with 4 subplots in a 2x2 pattern. Use the ratings array from the cities dataset to create the following plots (plot labels are helpful but not required):
A. In the first plot window, display the variables in the array using plot(ratings). Describe the plot What is the x axis? What is the y axis? What do the different lines represent?
B. Looking at this plot, can you spot any trends in the data?
C. In the second plot window, plot column 1 of ratings on the x axis and
column 2 on the y axis. Plot each sample as a single point with no
connecting lines.
D. Looking at this plot, can you spot any trends in the data?
E. In the third plot window, plot a sample of the dataset from the second plot
window by plotting every 5th row of column 1 and column 2.
F. In the fourth plot window, plot a histogram of the column 2 data. Describe
the pattern shown by the histogram.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started