Hi ,
I have purchased the book
. And,I ran the demos of this book - list7.7 & list7.6. I got the listings and data from http://www.prtools.org/book.html . However, some erros were reported by Prtool(4.1). I do not know why.Could I get some help here? The errors and codes are listed here for convenience:‘Classification,Parameter Estimation and State Estimation--an engineering approach using MATLAB’
??? Error using ==> setlabtype at 44
Soft labeled datasets should contain at least one class
Error in ==> Listing77 at 2
List 7.6:
z = setlabtype(z,'soft'); % Set probabilistic labels
load nutsbolts_unlabeled; % Load the data set z
z = setlabtype(z,'soft'); % Set probabilistic labels
[lab,w] = emclust(z,qdc,4); % Cluster using EM
figure; clf; scatterd(z);
plotm(w,[],0.2:0.2:1); % Plot results
List 7.7
load nutsbolts_unlabeled; % Load the data set z
z = setlabtype(z,'soft'); % Set probabilistic labels
% Cluster 1D PCAs using EM
[lab,w] = emclust(z,qdc([],[],[],1),4);
figure; clf; scatterd(z);
plotm(w,[],0.2:0.2:1); % Plot results

