MATLAB Help With MATLAB - Generating Random Numbers, Calculations & Comparing Results

  • Thread starter Thread starter urgenthelpnid
  • Start date Start date
  • Tags Tags
    Matlab
AI Thread Summary
The discussion revolves around generating random normal distributed numbers in MATLAB to simulate noise and real data, calculating statistical values like mean and standard deviation, and assessing false alarm and missed detection rates. Users are advised to utilize the 'randn' function for generating random numbers and to explore MATLAB's statistical functions for calculations. A suggestion is made to use loops for running the simulations multiple times to compare results. Clarification is provided that the request is for personal research rather than homework. The conversation emphasizes the importance of understanding MATLAB scripting for effective implementation.
urgenthelpnid
Messages
2
Reaction score
0
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??
 
Physics news on Phys.org
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

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

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

Similar threads

Replies
1
Views
2K
Replies
12
Views
4K
Replies
3
Views
3K
Replies
8
Views
2K
Replies
1
Views
3K
Replies
2
Views
5K
Back
Top