
5 Data Analysis
Visualizing Data
In this section.. .
“Overview” on page 5-14
“2-D Scatter Plots” on page 5-14
“3-D Scatter Plots” on page 5-16
“Scatter Plot Arrays” on page 5-18
Overview
MATLAB provides ma ny plo ts for visualizing data patterns and trends.
Histograms and time-series plots of the traffic data are described in the
sections on “Preprocessing Data” on page 5-3 and “Summarizing Data”
on page 5-10. Scatter plots, described in this section, help to visualize
relationships among the traffic data at different intersections.
Note This section continues the data analysis from “Summarizing Data”
on page 5-10.
2-D Scatter Plots
A 2-D scatter plot, created with the MATLAB scatter function, shows the
relationship between the traffic volume at the first two intersections:
c1 = count(:,1); % Data at intersection 1
c2 = count(:,2); % Data at intersection 2
figure
scatter(c1,c2,'filled')
xlabel('Intersection 1')
ylabel('Intersection 2')
5-14
Comentarios a estos manuales