I want to remove data from a table using conditions

1 回表示 (過去 30 日間)
Haisam Khaled
Haisam Khaled 2021 年 12 月 15 日
回答済み: Haisam Khaled 2021 年 12 月 15 日
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,:);

採用された回答

Haisam Khaled
Haisam Khaled 2021 年 12 月 15 日
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);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by