I'm trying to create a dataset on matlab 12 using the following code
C = dataset('File', 'zoo.txt', 'VarNames',{'animalname','hair','feathers',...
'eggs','milk','airborne','aquatic','predator','toothed', 'backbone',...
'breathes', 'venomous', 'fins',...
'legs', 'tail','domestic','catsize','type'}, 'Delimiter', ',')
but it shows me these errors Error using setvarnames (line 36) Duplicate variable names.
Error in dataset/readFile (line 235) a = setvarnames(a,varNames(:)',[],true,true);
Error in dataset (line 339) a = readFile(a,fileArg,otherArgs);
can anyone help?
you can find the zoo.txt file in the attachement