Filtering data in matrices
    3 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Andrew Stark
 el 1 de Dic. de 2020
  
    
    
    
    
    Comentada: Andrew Stark
 el 1 de Dic. de 2020
            AA=Df{1,1};
AAA=AA;
for i=1:length(AA)
    if AA(i) <1 || AA(i)>2
    AAA(i)=[];
    end
end
I am trying to filter data that is between 2 values into a new matrix. Whenever I run this code I get the error
Matrix index is out of range for deletion.
Error in Analyze (line 279)
    AAA(i)=[];
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
				Más información sobre Loops and Conditional Statements 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!

