Added networkmeasures loop for matlab

Thank you to Petra!