I want to remove data from a table using conditions

1 visualización (últimos 30 días)
Haisam Khaled
Haisam Khaled el 15 de Dic. de 2021
Respondida: Haisam Khaled el 15 de Dic. de 2021
I want to delete the data above the red line using conditions
I used this code but the image says it all.
gh=(vntaxi.Fare >= 55 & vntaxi.Fare <= 100 & vntaxi.Distance <= 20);
tes=vntaxi(~gh,:);

Respuesta aceptada

Haisam Khaled
Haisam Khaled el 15 de Dic. de 2021
I FIGURED IT OUT
I will keep this post up for anyone that wants help.
I used this line of code. The idea is simply to use a line equation for the data.
gh=(vntaxi.Fare > 2.25*vntaxi.Distance+55);

Más respuestas (0)

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by