A cycle for creating and working with zones
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Lev Mihailov
el 3 de Sept. de 2019
Comentada: Lev Mihailov
el 3 de Sept. de 2019
Hello! I have a long vector line 1x10026, I need to divide it into zones (100 values in each), look at them and do operations with them, and then again deplete it into a single vector line, help me how to do this
Data % my data is in the form of a row vector
for ind=1:100:n % n the length of this string
TF = isoutlier(Data(ind));
TF{i}=TF;
end
I tried this option, but does not consider the value.
1) How can I make these zones with 100 values and what would the tail be considered (those are my 26 values) ???
2) How do I then impoverish them?
3 comentarios
Respuesta aceptada
Andrei Bobrov
el 3 de Sept. de 2019
n = numel(Data);
ii = ceil((1:n)'/100);
TF = accumarray(ii,Data(:),[],@(x){isoutlier(x)});
Más respuestas (0)
Ver también
Categorías
Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!