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

  • MATLAB
  • Thread starter urgenthelpnid
  • Start date
  • Tags
    Matlab
In summary, the person is asking for urgent help with running a MATLAB code. The code needs to generate a sequence of random normal distributed numbers, calculate statistical values, and calculate false alarm and missed detection rates. They also mention running the code multiple times for comparison. It is unclear what they mean by false alarm detection. They are directed to resources for help with these tasks.
  • #1
urgenthelpnid
2
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
  • #2
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:
  • #3
Thanks. Its actually not homework just some research I am working on personally.
But thanks anyways!
 

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

What is MATLAB and what can it be used for?

MATLAB is a high-level programming language and interactive environment commonly used by scientists and engineers for data analysis, visualization, and numerical computations. It can also be used for creating and running simulations, developing algorithms, and building models.

How can I generate random numbers in MATLAB?

To generate random numbers in MATLAB, you can use the built-in functions rand, randn, randi, and randperm. These functions allow you to specify the size and distribution of the random numbers you want to generate.

What calculations can be performed in MATLAB?

MATLAB has a wide range of built-in functions and operators that allow you to perform various calculations, such as arithmetic operations, matrix manipulations, statistical calculations, and more. Additionally, you can create your own custom functions for specific calculations.

How can I compare results in MATLAB?

MATLAB has various tools that allow you to compare results, such as the isequal and isequaln functions, which check if two arrays or matrices are equal. You can also use logical operators like ==, ~=, >, etc. to compare numerical values.

Is there any support available for learning MATLAB?

Yes, there are various resources available for learning MATLAB, including official documentation, online tutorials, forums, and community support. You can also find books, courses, and workshops dedicated to teaching MATLAB and its applications.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
881
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
14
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
2K
  • Programming and Computer Science
Replies
1
Views
654
  • Set Theory, Logic, Probability, Statistics
Replies
8
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
12
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
11
Views
6K
Replies
1
Views
3K
Back
Top