fixed indexing in getqudrants.m