You are on page 1of 1

close all;

sel=2;
K=6;
a=1;b=10000;
if sel==1;
A=[];mem=[];cent=[];
A=FS1814_TMP(a:b,:)';
[mem cent] = ksc_toy(A,K);
figure(1)
plot(cent');
figure(2)
plot(A');
end

if sel==2
i=1;
figure
CC=cent';
plot(CC);

title('GROUP TIP');
figure
plot(A');

for kk=1:K
figure
for n=1:48

mem(n,1)
if mem(n,1)==kk
TMP=num2str(n);
mcolor=rand(1,3);
T_CRT=['T' num2str(n) '(:,1)=FS1814_TMP(:,n);']
eval(T_CRT);
G_CRT=['G' num2str(kk) '(:,i)=T' num2str(n) '(:,1);']
eval(G_CRT);
% plot(FS1814_TMP(:,n),'-', 'color', mcolor);

plot(eval(['G' num2str(kk) '(:,' num2str(i) ')']),'-', 'color',


mcolor);
mylgd{i} = ['T', num2str(n)];
hold on
i=i+1;
end
end
legend(mylgd);
title(['Group' num2str(kk)])
i=1;

end
end

% plot(FS1814_TMP(:,16));

You might also like