Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
how can i gather points of a graph when its running a number of times?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Let say I have an X number of points like 100, so for every 10 points I want the last 5 points so when its 20 I want the last 5 points and so on
3 comentarios
Respuestas (1)
James Tursa
el 5 de Jul. de 2018
Is this what you want:
y = your vector
yr = reshape(y,10,[]);
result = yr(5:10,:);
result = reshape(result,1,[]);
2 comentarios
James Tursa
el 6 de Jul. de 2018
Editada: James Tursa
el 6 de Jul. de 2018
As near as I can tell from your wording, that is exactly what my posted code does. Since you state this is not what you want, you will need to provide us with the explicit output you want for this example before we can understand. I.e., give us the exact numbers in the resulting vector that you would want for a result.
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!