To talk on Icrontic, just register!

It only takes 30 seconds.

Have an account? Sign in:

Forgot?
ldelgad8
Icrontic Convert
ldelgad8
15 Posts

Std Dev

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
shwaip
elaborate bot
shwaip
5,729 Posts
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.
__________________ my photostream for ic photography challenge

Anyone who wants dropbox, please use my referral link
ldelgad8
Icrontic Convert
ldelgad8
15 Posts
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
Similar Threads
Thread Thread Starter Forum Replies Last Post
Good Web Dev Oppurtunity V|P General Banter 3 15 Oct 2006 7:40pm

Go Back   Icrontic Forums > Tech: Software > General Software > Matlab Help
Jump to
This Thread Search this Thread
Search this Thread:

Advanced Search


Current time: 6:38am (GMT)
Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Get Vanilla instead. Trust me.