cdata[0][i]=logFreqArray[i];
cdata[1][i]=20.0D*Fmath.log10(this.evalMagTransFunctS(freqArray/(2.0*Math.PI)));
logFreqArray[i+1]=logFreqArray[i]+incr;
}
PlotGraph pgmag = new PlotGraph(cdata);
pgmag.setGraphTitle("Bode Plot = magnitude versus log10[radial frequency]");
pgmag.setGraphTitle2(this.name);
pgmag.setXaxisLegend("Log10[radial frequency]");
pgmag.setYaxisLegend("Magnitude[Transfer Function]");
pgmag.setYaxisUnitsName("dB");
pgmag.setPoint(0);
pgmag.plot();
for(int i=0; i<nPoints; i++){
freqArray=Math.pow(10,logFreqArray[i]);
cdata[0][i]=logFreqArray[i];
cdata[1][i]=this.evalPhaseTransFunctS(freqArray)*180.0D/Math.PI;
}
PlotGraph pgphase = new PlotGraph(cdata);
pgphase.setGraphTitle("Bode Plot = phase versus log10[radial frequency]");
pgphase.setGraphTitle2(this.name);
pgphase.setXaxisLegend("Log10[radial frequency]");
pgphase.setYaxisLegend("Phase[Transfer Function]");
pgphase.setYaxisUnitsName("degrees");
pgphase.setPoint(0);
pgphase.plot();
}