[Pkg-octave-devel] Bug#474269: Bug#474269: epstk:
Hi,
I just uploaded 2.2-10, with another patch by Stefan Mueller. It
introduces a few more variables, adding the possibility for a
fine-grained ticks setting.
I attach a file 'test.m' by Stefan, showing how to use the new
variables.
Thomas
1;
function B = bodel (f)
pole=1; # pole [Hz]
sr=200; # sampling rate [Hz]
sig=1./(1-j*f/pole); # frequency response of one pole
B=real(sig.*conj(sig)); # compute power
al=1./(1-j*(f-sr)/pole); # one positive windowful of aliasing
B+=real(al.*conj(al)); # add aliasing power
B=10*log10(B);
endfunction
eglobpar; # get access to global parameters
eopen("spectrum.eps");
ePlotAreaHeight=70; # plot height [mm]
ePlotAreaWidth=70; # plot width [mm]
eXAxisSouthScaleType=2; # log scale
eXAxisNorthTicsVisible=1;
eXAxisSouthTicsVisible=0;
eYAxisWestTicsVisible=0;
eYAxisEastTicsVisible=1;
f=[1:4096]*100/4096;
b=bodel(f);
eplot(f,b)
eclose # print the graph on file
eview
Reply to: