Adding a standard deviation to the equation
1 次查看(过去 30 天)
显示 更早的评论
Hi,I'm trying to find the standard deviation from this function code that I've written for my mean, please how do I adjust it in order to find the standard deviation from the code I have written? I've tried a few codes but its not running.
function [ret] = mymean(a)
%UNTITLED Summary of this function goes here
% Detailed explanation goes here
len = length(a);
store=0;
for i=1:len
store=store+a(i);
end
ret = store / len;
end
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!