I have a function

x = 0:0.05:5.05

eta = 2*rand()-1

y = sin(x) + cos(x) + eta*0.1

This plots a smooth curve where eta is a fixed value for every point from 0:0.05:5.05

I want eta to change for every alue from 0:0.05:5.05

How do i do this?

Printable View

- February 4th 2010, 05:31 AMadam_leedsMore matlab help needed please
I have a function

x = 0:0.05:5.05

eta = 2*rand()-1

y = sin(x) + cos(x) + eta*0.1

This plots a smooth curve where eta is a fixed value for every point from 0:0.05:5.05

I want eta to change for every alue from 0:0.05:5.05

How do i do this? - February 4th 2010, 06:33 AMCaptainBlack