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?
Follow Math Help Forum on Facebook and Google+
Originally Posted by adam_leeds 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? Code: x = 0:0.05:5.05 eta = 2*rand(size(x))-1 y = sin(x) + cos(x) + eta*0.1 CB
x = 0:0.05:5.05 eta = 2*rand(size(x))-1 y = sin(x) + cos(x) + eta*0.1
View Tag Cloud