Help Needed with matlab

  • #1
Hi All,

Il appreciate urgent help here!

Im trying to run a matlab code. What I need the code to do is

1. generate a sequence of random normal distributed numbers to represent noise and real data.
2. calculate some statistical values from these numbers (mean, std, etc)
3. calculate false alarm detection rates and missed detection from this data
4. run 1,2,3 again (say 10 times) to be able to compare false alarm and missed detection and detection rate of all sets.

Can anyone help?

Please??
 

Answers and Replies

  • #2
MATLABdude
Science Advisor
1,655
4
Welcome to PhysicsForums!

This sounds somewhat like homework, which we can't really do for you. Nevertheless, the following functions (assuming you have basic knowledge of MATLAB and how to write a .m script) may be of benefit to you in your quest:

randn -- normally-distributed pseudorandom number generator:
http://www.mathworks.com/help/techdoc/ref/randn.html

MATLAB's list of basic statistical functions:
http://www.mathworks.com/help/techdoc/ref/f16-48518.html#bqw1arz-1 [Broken]

I have no idea what you mean by 'false alarm detection' however, unless that's the normally-distributed data you're attempting to simulate. If you do need to run this multiple times (despite the fact that the data will be normally-distributed, unless you're looking for small sample-size variations) you can do that using a for or while loop:
http://www.mathworks.com/help/techdoc/matlab_prog/brqy1c1-1.html [Broken]

Good luck!
 
Last edited by a moderator:
  • #3
Thanks. Its actually not homework just some research Im working on personally.
But thanks anyways!
 

Related Threads on Help Needed with matlab

Replies
1
Views
2K
Replies
1
Views
2K
Replies
2
Views
7K
Replies
2
Views
2K
Replies
0
Views
2K
  • Last Post
Replies
6
Views
4K
Replies
4
Views
2K
  • Last Post
Replies
1
Views
2K
Replies
1
Views
2K
Replies
0
Views
2K
Top