MATLAB: Need help manually finding the standard deviation using an external function

beginnerexternal functionhelpMATLABscriptstandard deviation

I am new to matlab (taking an intro to matlab class), but for my assignment I have to do a number of things including randomly generating 10 scores for each of 25 students. Then take the median, mean, and standard deviation for each student's scores. For median and mean I used median(Score,2) and mean(Score,2) to find the values for each row (individual student's 10 scores). I am struggling to figure out how to manually find the standard deviation for each student. I also have to use Matlab functions to find the std and compare it to the manual calculation. The part I am inquiring about is part D in the code. I know I probably dont have it right at all this is just my starting point from looking stuff up online. Any help would be appreciated, thanks.

Best Answer

It should be something like this
z = sqrt(1/N*sum((Score - mean_student).^2, 2))
Related Question