Random number time series
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Bdayz
el 13 de Sept. de 2016
Comentada: Bdayz
el 13 de Sept. de 2016
Hi All,
I will like to generate Independent normally distributed data with linearly
increasing mean from say 2 to 4 and constant standard deviation, say 1.
Thank you.
0 comentarios
Respuesta aceptada
s.p4m
el 13 de Sept. de 2016
Editada: s.p4m
el 13 de Sept. de 2016
ln = 100; % length of timeseries
Ts = 1; % timestep
for k = 1:ln
tmp_mean = 2+2*(k-1)/(ln-1); % your linearly increasing mean
tmp_devi = 1; % your constant standard deviation
x(k,1) = random('norm',tmp_mean,tmp_devi,1,1);
end
timeseries = iddata(x,[],Ts);
Más respuestas (0)
Ver también
Categorías
Más información sobre Time Series en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!