Find certain values of a csv file

1 Ansicht (letzte 30 Tage)
Elijah Shepherd
Elijah Shepherd am 7 Apr. 2020
Beantwortet: Walter Roberson am 7 Apr. 2020
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.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 7 Apr. 2020
t=load('mariana_depth - Copy.csv');
mean(t(t<-6000))

Weitere Antworten (0)

Kategorien

Mehr zu Shifting and Sorting Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by