From: Rupika Bandara on
I want to add white Gaussian noise of four intensities (i.e. 1%, 2%, 5% and 10% noise to signal ratio) to impact force signals and the acceleration response time histories. Can anyone give me a help?
From: ade77 on
"Rupika Bandara" <rupika23(a)yahoo.com> wrote in message <hrd378$4e$1(a)fred.mathworks.com>...
> I want to add white Gaussian noise of four intensities (i.e. 1%, 2%, 5% and 10% noise to signal ratio) to impact force signals and the acceleration response time histories. Can anyone give me a help?

if you have communications toolbox:
doc awgn
doc wgn
From: TideMan on
On Apr 30, 11:03 am, "Rupika Bandara" <rupik...(a)yahoo.com> wrote:
> I want to add white Gaussian noise of four intensities (i.e. 1%, 2%, 5% and 10% noise to signal ratio) to impact force signals and the acceleration response time histories. Can anyone give me a help?

For a single percentage:
y1=y + pc/100*std(y)*randn(length(y),1);

I'll leave to you the upgrading of this into a matrix equation to
compute all the pcs at once.
From: Rupika Bandara on
TideMan <mulgor(a)gmail.com> wrote in message <ec0f1675-e601-4583-9888-83ff192fd004(a)a18g2000prd.googlegroups.com>...
> On Apr 30, 11:03 am, "Rupika Bandara" <rupik...(a)yahoo.com> wrote:
> > I want to add white Gaussian noise of four intensities (i.e. 1%, 2%, 5% and 10% noise to signal ratio) to impact force signals and the acceleration response time histories. Can anyone give me a help?
>
> For a single percentage:
> y1=y + pc/100*std(y)*randn(length(y),1);
>
> I'll leave to you the upgrading of this into a matrix equation to
> compute all the pcs at once.

Hi,
Sorry. I am not good at Matlab. So can you explain me further. what is std (is it standard deviation), what is the meaning of randn, and length (y). my force vectors are [100 300 700 800]. Then how can I add 1%, 2%, 5% and 10% noise to signal ratio to these forces?
From: Mark Shore on
"Rupika Bandara" <rupika23(a)yahoo.com> wrote in message <hrdjf7$llb$1(a)fred.mathworks.com>...
> TideMan <mulgor(a)gmail.com> wrote in message <ec0f1675-e601-4583-9888-83ff192fd004(a)a18g2000prd.googlegroups.com>...
> > On Apr 30, 11:03 am, "Rupika Bandara" <rupik...(a)yahoo.com> wrote:
> > > I want to add white Gaussian noise of four intensities (i.e. 1%, 2%, 5% and 10% noise to signal ratio) to impact force signals and the acceleration response time histories. Can anyone give me a help?
> >
> > For a single percentage:
> > y1=y + pc/100*std(y)*randn(length(y),1);
> >
> > I'll leave to you the upgrading of this into a matrix equation to
> > compute all the pcs at once.
>
> Hi,
> Sorry. I am not good at Matlab. So can you explain me further. what is std (is it standard deviation), what is the meaning of randn, and length (y). my force vectors are [100 300 700 800]. Then how can I add 1%, 2%, 5% and 10% noise to signal ratio to these forces?

Type help std, help randn, help length from the command line. Or read http://www.mathworks.com/access/helpdesk/help/pdf_doc/matlab/getstart.pdf or one of the numerous introductory books available.