How to separate a data in this way?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Yunseo Choi
el 7 de Ag. de 2018
Comentada: KSSV
el 7 de Ag. de 2018
For example, if I have a data like this
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/193309/image.png)
what I want is - if I look at the first column,
....
like this so that I can get a matrix of
A= coordinate(a:b,:)
How can I do this?
0 comentarios
Respuesta aceptada
KSSV
el 7 de Ag. de 2018
Let C be you column in which you want to seek the indices.
idx = C<1 ; % this is logical indesing, this gives numbers in C less than 1
idx = find(C) ; % this gives you the location you want.
2 comentarios
KSSV
el 7 de Ag. de 2018
[A,txt,raw] = xlsread('coordinate.xlsx') ; % read file
iwant = A(A(:,1)<12,:) % This gives the data for first column less then 12
Más respuestas (0)
Ver también
Categorías
Más información sobre Matrices and Arrays 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!