extractor
newdata=extractor(data,cn,valinf,valsup)
extracts from DATA, all the lines whose the CNth column
has values included between valinf and valsup
DATA = matrix N X M
CN = Column Number (target)
VALINF = Low limit
VALSUP = High limit
NEWDATA = Extracted Matrix
Example:
a =
1 2 3
4 5 6
1 7 8
1 4 9
4 7 2
9 6 5
extract data with third column included between 0 and 5:
>> extractor(a,3,0,5)
ans =
1 2 3
4 7 2
9 6 5
extract data with first column exactly equal to 4:
>> extractor(a,1,4,4)
ans =
4 5 6
4 7 2
Citar como
Jean-Luc Dellis (2024). extractor (https://www.mathworks.com/matlabcentral/fileexchange/15519-extractor), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- Signal Processing > DSP System Toolbox > Signal Generation, Manipulation, and Analysis > Signal Attributes and Indexing >
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 | 1/ improvement of the error checking
|