www.gusucode.com > stats 源码程序 matlab案例代码 > stats/CreateaScatterhistPlotExample.m
%% Create a Scatterhist Plot % Copyright 2015 The MathWorks, Inc. %% % Load the sample data. Create data vector |x| from the first column of % the data matrix, which contains sepal length measurements from iris flowers. % Create data vector |y| from the second column of the data matrix, which % contains sepal width measurements from the same flowers. load fisheriris.mat; x = meas(:,1); y = meas(:,2); %% % Create a scatter plot and two marginal histograms to visualize the relationship % between sepal length and sepal width. scatterhist(x,y)