clustermap_d.m

来自「计量工具箱」· M 代码 · 共 33 行

M
33
字号
% PURPOSE: An example using scattermap
%          to examine a scattermap of 2 variables
%---------------------------------------------------
% USAGE: clustermap_d
%---------------------------------------------------

% PURPOSE: An example using clustermap
%          to examine a matrix of variables
%          by clusters over a map
%---------------------------------------------------
% USAGE: clustermap_d
%---------------------------------------------------

clear all;

load ecu.data;
load ecu_xy.data;

area = ecu_xy(:,1);
latt = ecu_xy(:,2);
long = ecu_xy(:,3);

ecu95 = ecu(:,17);
ecu80 = ecu(:,2);
grwthx = ecu(:,end);

clusters = 4;
method = 1;

clustermap(long,latt,[ecu80 ecu95 grwthx],clusters,method); % using points

% clustermap(long,latt,[ecu80 ecu95 grwthx],clusters,method,[],[],1); % using symbols

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?