Find certain values of a csv file

조회 수: 1 (최근 30일)
Elijah Shepherd
Elijah Shepherd 2020년 4월 7일
답변: Walter Roberson 2020년 4월 7일
I'm trying to discern the points of this attached csv file that have values less than -6000. I know booleans aren't really a thing on MATLAB, so I'm not sure how I can achieve this, especially given the size of the csv file. I need to figure out the points which have values of less than -6000 and then find the mean of those values, which I know how to do. I'm just stuck with the coding of how to set a range of acceptable values on this csv file.

채택된 답변

Walter Roberson
Walter Roberson 2020년 4월 7일
t=load('mariana_depth - Copy.csv');
mean(t(t<-6000))

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by