how to generate impulse noise for audio or any signal processing

8 views (last 30 days)
hi everyone,
I want to generate impulse noise signal for audio or any signal processing applications, specially for signals, in matlab what are the functions available to generate noise signals are for image processing, please help me in this issue.
thanking you,
krishna mohan p v

Accepted Answer

krishna mohan venkata puvvadi
Thank you, I will try this
  1 Comment
Image Analyst
Image Analyst on 3 Mar 2019
To thank people you can vote for and/or accept their answers.
But why is this answer the Answer that got accepted and earned the reputation points?
It's not even an answer to the original post?

Sign in to comment.

More Answers (1)

Image Analyst
Image Analyst on 2 Mar 2019
Use randperm() to get indexes for the noise. Then set the values to whatever you want. For example (untested)
numNoiseElements = 100;
noiseIndexes = randperm(length(yourSignal), numNoiseElements);
yourSignal(noiseIndexes) = someBigValue;
If you run into any problems, attach your code, and signal, if it came from a file.

Categories

Find more on Code Generation and Deployment in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!