Std Dev

edited September 2007 in Science & Tech
I'm new to Matlab(student) and am trying to generate a matrix that takes results from 3 exams for n students

Student ID
generate ID's for n students with numbers between 1000 and 9999, evenly distrubed.

Exam 1
Mean =68
StdDev=17

Exam 2
Mean=75
Std Dev=15

Exam 3
Mean=82
Std Dev=19

How would I go about generating the data for the 3 exams

Thanks
ld

Comments

  • shwaipshwaip bluffin' with my muffin Icrontian
    edited September 2007
    randn(m,n) will generate a zero-mean, unit variance normal m x n matrix.
    rand(m,n) will generate a uniform distribution [0,1] m x n matrix.

    Hopefully that's enough to get you on your way... let me know if you need more info.
  • edited September 2007
    shwaip wrote:
    randn(m,n) will generate a zero-mean, unit variance normal m x n matrix.
    rand(m,n) will generate a uniform distribution [0,1] m x n matrix.

    Hopefully that's enough to get you on your way... let me know if you need more info.

    Thank you very much, it did get me on my way and was able to complete my project.

    Thanks again
Sign In or Register to comment.