How to generate noise signal with desired max and min signal?
4 views (last 30 days)
Karim on 5 Jul 2022
if you just want a random signal you can try the following:
MinVal = 2 ;
MaxVal = 4;
numPoints = 1000;
Data = MinVal + rand(numPoints,1) .* (MaxVal - MinVal);
More Answers (1)
Raghav on 5 Jul 2022
You can use tha rand() function to get a random noise signal in range of (a,b) by writing the expression: a+(b-a)*rand(size(x)).
x = linspace(0,1000,1000);
To undesrtand more about the rand() function, read the following documentation: