Finding an initial point, then skipping a certain amount of points.
Mostrar comentarios más antiguos
So here is what I've done so far. t=1:.5:50; randn('state',0); x=sin(2*pi*t); x=2*randn(size(t)); plot(x)
In order to create a random wave form. Now I wish to find the first point over 2, but then skip the next 5 points, regardless if its greater than 2 or not. Then I wish to skip the next five points again, and so forth until the end. This is a mere practice exercise for me, and I am still a learning student. Thanks in advance.
4 comentarios
Fangjun Jiang
el 31 de Ag. de 2011
Are you provide x as example data? What is the point running x=sin(2*pi*t)?
x=2*randn(), x is never going to be greater than 2!
Oleg Komarov
el 31 de Ag. de 2011
How does this question differ from: http://www.mathworks.com/matlabcentral/answers/14466-how-to-skip-certain-return-points-using-the-find-command
Benjamin
el 3 de Sept. de 2011
Oleg Komarov
el 3 de Sept. de 2011
Ok, now I get it.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Data Type Identification en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!