MATLAB Answers

how to genrate random signal

15 views (last 30 days)
irfan
irfan on 6 Apr 2016
Edited: Rick Rosson on 7 Apr 2016
N=1024;

  3 Comments

Geoff Hayes
Geoff Hayes on 6 Apr 2016
irfan - please provide more details. What should the frequency be? What should be the amplitude? Or are these random too? Is N defined to be the block size?
Rick Rosson
Rick Rosson on 6 Apr 2016
And, what probability distribution do you want to use? Gaussian? Uniform? Exponential? Or...?
irfan
irfan on 7 Apr 2016
my frequency and amplitude are also random ,i am using uniformly distribution .i am confused how to do it so sir kindly help me

Sign in to comment.

Accepted Answer

Rick Rosson
Rick Rosson on 7 Apr 2016
Edited: Rick Rosson on 7 Apr 2016
N = 1024;
x = rand(N,1);
figure;
plot(x);

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.