Borrar filtros
Borrar filtros

How to read a single column for specific data?

1 visualización (últimos 30 días)
Ara
Ara el 31 de Dic. de 2012
Hi,
How can I read this column just for specific data?
x=[1;2;3;4;5;6;7;8;9;10];
I just want to read 1,2,3 and 9, 10 and calculate some formula just for these data.
Could you please guide me how?

Respuesta aceptada

Walter Roberson
Walter Roberson el 31 de Dic. de 2012
How do you know which data you want to "read"? Is it the 1st, 2nd, 3rd, 9th and 10th positions? If so then
x([1 2 3 9 10])
  5 comentarios
Walter Roberson
Walter Roberson el 31 de Dic. de 2012
data(data(:,1) < 10 | data(:,1) >= 22, :)
Ara
Ara el 31 de Dic. de 2012
Thank you, walter. Happy New Year!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by