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

  • Context: MATLAB 
  • Thread starter Thread starter urgenthelpnid
  • Start date Start date
  • Tags Tags
    Matlab
Click For Summary
SUMMARY

The discussion focuses on generating random numbers in MATLAB to simulate noise and real data, calculating statistical values, and assessing false alarm detection rates. Key MATLAB functions mentioned include randn for generating normally-distributed numbers and various statistical functions for calculations. The user seeks to run these processes multiple times to compare detection rates, which can be achieved using loops in MATLAB. The conversation emphasizes the importance of understanding MATLAB scripting for effective implementation.

PREREQUISITES
  • Basic knowledge of MATLAB programming
  • Understanding of normally-distributed random variables
  • Familiarity with statistical calculations (mean, standard deviation)
  • Knowledge of control structures in programming (for and while loops)
NEXT STEPS
  • Explore MATLAB's randn function for generating random numbers
  • Learn about MATLAB's built-in statistical functions
  • Research how to implement loops in MATLAB for repeated calculations
  • Investigate methods for calculating false alarm detection rates in data analysis
USEFUL FOR

Researchers, data analysts, and students working with MATLAB who need to simulate data and perform statistical analysis on random datasets.

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 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
8K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
11
Views
6K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K