Mathematical Computations – MATLAB for Beginners – MATLAB Basics – Tutorials – Volume-2

Unit-10

Statistics

>> x=[2 64 43 7 87 9 1 65 21 5 6 3 2 76 4];
>> max(x)
ans =
    87

>> min(x)
ans =
     1

>> mean(x)
ans =
   26.3333

>> mode(x)
ans =
     2

>> median(x)
ans =
     7

>> std(x)
ans =
   31.3726

>> var(x)
ans =
  984.2381

Be the first to comment

Leave a Reply

Your email address will not be published.




9 − 1 =