I got an error ignoring extra legend entries.
Show older comments
x = [data2bl;data3bl;data4bl;data5bl];
for index = 1:2000
if index <= 500
Origin(index,:) = 'Smell1';
end
if index >=501 && index <=1000
Origin(index,:) = 'Smell2';
end
if index >=1001 && index <=1500
Origin(index,:) = 'Smell3';
end
if index >=1501 && index <=2000
Origin(index,:) = 'Smell4';
end
end
%Dendrogram plot
figure(12)
[d,p,stats]= manova1(x,Origin);
manovacluster(stats,'single');
title('Dendrogram plot of Basic Smell');
ylabel('Similarity level');
xlabel('Sample type')
grid on;
h=legend('Banana','Rose','Strawberry','Vanilla',2);
Answers (1)
Thorsten
on 14 Apr 2015
h = legend({'Banana' 'Rose' 'Strawberry' 'Vanilla'})
2 Comments
Vikneswaran Ramakrishnan
on 14 Apr 2015
Thorsten
on 16 Apr 2015
It's not an error, but a warning. It says that you have fewer curves plotted than you have labels in your legend.
Categories
Find more on Repeated Measures and MANOVA in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!