How to calculate the avg

Hi,

I’m trying to calculate the avg of 3 variables I’m storing through the csvSave

So what I’m trying to do is
var avg=((row1)+ (row2)+$(row3))/3

I need to read each line on the csv file saved as variable and calculate

Also, I read about the !csvReadLineNumber but I don’t know how to use it!

Thanks

How does your CSV file look? Does it have just one column and you need to average values from 3 rows?

Hi

Yes it has 1 column and 3 rows

Just to clarify: So the CSV file has only 3 values inside?

Hi

Yes, it has 3 values that will be like the following:

7.5
8.9
9.0