# How to generate random noise voltage?

Started by October 3, 2008
Hello, I'm quite new in using Matlab.How to generate a 2000-point
random noise voltage with a dc or mean value of 0 and an rms value of
10 V using a time step of 1 us.
I try like this

N 00;
for n=1:N
x(n)*rand();
end

Hi,

You can create the random function in the following way:
x(n)=(rand(1,2000)*10)+(0);

The general expression is: x=(rand(1,N)*(x2-x1))+(x1); if u want to
vary the value between x2 and x1. For ur work -- x2, x1=0.

It may work for you.

Regards,
Pavel

--- In m..., "khoo_nelson" wrote:
>
> Hello, I'm quite new in using Matlab.How to generate a 2000-point
> random noise voltage with a dc or mean value of 0 and an rms value of
> 10 V using a time step of 1 us.
> I try like this
>
> N 00;
> for n=1:N
> x(n)*rand();
> end
>
>
Hello, I'm quite new in using Matlab.How to generate a 2000-point
>random noise voltage with a dc or mean value of 0 and an rms value of
>10 V using a time step of 1 us.
>I try like this
>
>N 00;
>for n=1:N
>x(n)*rand();
>end
>