Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Matrix manipulation coding with If and for loops
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I have a n x 2 matrix. I want to basically look at adjacent number in the column one and if the difference in the values is greater than 1, than I want to insert a blank space in the nx2 matrix.
Can anyone please help with this?
5 comentarios
dpb
el 17 de Jul. de 2015
Or use accumarray with the subscript vector obtained from
ix=find(diff([0;x(:,1))>1);
to compute the statistics wanted.
Respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!