The value assigned to variable 'total' might be unused
Show older comments
function ret = Mean(Set)
total = 0;
for i = 1:length(Set)
total += Set(i);
end
ret = total / length(Set);
end
Accepted Answer
More Answers (0)
Categories
Find more on Clustering 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!