Borrar filtros
Borrar filtros

How to select specific data rows from neighboring column

4 visualizaciones (últimos 30 días)
Andrew
Andrew el 28 de Abr. de 2023
Comentada: Andrew el 28 de Abr. de 2023
Hello,
I have a quick question,
I have this code to pull out data from my excel file and plot scatter from this extracted table:
My question is what do I do if I want a command to select only specific rows based on the numbers in column 1 (for example, I only wanted to plot numbers 21-30 and nothing else?
Thanks!

Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 28 de Abr. de 2023
index=and(T(:,1)>=21, T(:,1)<=30);
x=T(index,4);
y=T(index,3);
z=T(index,2);

Más respuestas (0)

Categorías

Más información sobre Data Import from MATLAB en Help Center y File Exchange.

Productos


Versión

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by