Hi,
Thanx for all the help before this. I have used
function classsizes and got the result. In the sample run,
prtools display all the vectors for all the classes.
But I don’t have a clue how to refer/access number of
records for a particular class.
is it something like this?
for i:1:3
disp(C.n(C.lablist(i)));
Thanx.
given sample data
1.3 1
1.4 1
1.5 1
1.6 1
1.66 1
1.7 1
1.75 1
1.8 2
1.82 2
1.83 2
1.84 2
1.85 2
1.88 2
1.89 3
1.9 3
1.92 3
1.93 3
1.94 3
1.95 3
1.99 3
load test
load testlabel
A=dataset(test,testlabel);
[nobs,nvars] = getsize(A);
B=cell(nobs,2);
C=cell(nobs,2);
%
for i = 1 : nvars
B = [A(:,i) A.labels];
%disp(B(:,1:2)); %works
C = B(:,1:2);
[n,lablist]=classsizes(C);
disp(n);
disp(lablist);
end
sample run
7 6 7
1
2
3

