필터 지우기
필터 지우기

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 CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by