MATLAB: How to read a file and assign important variables.

csv

These readings cover the last 72 hours of recordings and are recorded in 30 minute intervals. I need to calculate the dew estimation temperatures.

Best Answer

csv=csvread("IDV60901.95936.csv") ; % Read csv file. Have a look on readtable
T= csv(20,:) ; % temperature
RH = csv(27,:) ; % RH
gamma = log(RH/100)+18.678*T./(257.14+T) ;
Td1 = 257.14*gamma./(18.678-gamma) ;
Td2 = T - (100-RH)/5 ;
Related Question