Code covered by the BSD License  

Highlights from
GUI for Multivariate Image Analysis of Multispectral Images

image thumbnail
from GUI for Multivariate Image Analysis of Multispectral Images by Kateryna Artyushkova
A GUI for MIA of multispectral image data sets (PCA, Simplisma, MCR, classification).

[C,perm]=ChooseInitialCentres(set,k)
function [C,perm]=ChooseInitialCentres(set,k)
%CHOOSEINITIALCENTRES Randomly picks sample points
% Centres=CHOOSEINITIALCENTRES(Data,k) where Data is
% the data matrix, and k is the number of points required.
% Used to initialise various clustering routines.
%
%(C) David Corney (2000)   		D.Corney@cs.ucl.ac.uk

perm = randperm(size(set,1));
perm = perm(1:k);
C = set(perm,:);

Contact us at files@mathworks.com