function MaxDeviation(this,PG0,QG0,PD0,QD0) PD0Array=repmat(PD0,1,this.sampleNum); QD0Array=repmat(QD0,1,this.sampleNum); PDMaxDev=max(abs(this.PDArray-PD0Array),[],2) QDMaxDev=max(abs(this.QDArray-QD0Array),[],2) PG0Array=repmat() end