evaluating SqG in loadmat