Assuming there are no leap years in this period of time, I think you have a vector of dimesion (35040x1) (2samples*24hrs*365days*2years). If not, please manipulate your data into this dimesion to use the following code :
data_up = reshape(data, 48, 730);
output = mean(data_up,1);
Let me know if you have doubts.