Stav dette: Q factor measurements using MATLABʼ /