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

  • Context: MATLAB 
  • Thread starter Thread starter urgenthelpnid
  • Start date Start date
  • Tags Tags
    Matlab
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 3K views
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!