DSP using Python
I will be the noting basics of DSP which I am learning myself over here.
Basically I am exploring the numpy,scipy and pylab python packages which are useful for scientific computing.
Pylab provides matplotlib package which is usual for plotting graphs/data.
At first I was a bit intimidated by the list of options available, but after starting to use it , I realized that for my needs there is rather a much smaller subset which I need to know.
To know my experiences explore the below subsections:
I am not providing any explainations, rather just the trial templates which I developed using various other sources on net.
1/ Plotting using Pylab -- plot(label),subplot,axis(xmin,xmax,ymin,ymax),axvspan,axhspan,title,text,figure,legend,subplot_adjust,spacing between subplots
2/ Exploring the numpy array -- splicing, negative indices(easy to reach end of array without knowing the size),shape,reshape(changing dimensions) , linspace vs arange.(ways to create a python array),range(used in for loops to iterate over an arrays elements)
3/ FFT -- fft, ifft , fftshift , fftfreq -- standard fft output ( zero(mean), +ve low -> high,-ve -> high to low) , plotting phase spectrum.
Basically I am exploring the numpy,scipy and pylab python packages which are useful for scientific computing.
Pylab provides matplotlib package which is usual for plotting graphs/data.
At first I was a bit intimidated by the list of options available, but after starting to use it , I realized that for my needs there is rather a much smaller subset which I need to know.
To know my experiences explore the below subsections:
I am not providing any explainations, rather just the trial templates which I developed using various other sources on net.
1/ Plotting using Pylab -- plot(label),subplot,axis(xmin,xmax,ymin,ymax),axvspan,axhspan,title,text,figure,legend,subplot_adjust,spacing between subplots
2/ Exploring the numpy array -- splicing, negative indices(easy to reach end of array without knowing the size),shape,reshape(changing dimensions) , linspace vs arange.(ways to create a python array),range(used in for loops to iterate over an arrays elements)
3/ FFT -- fft, ifft , fftshift , fftfreq -- standard fft output ( zero(mean), +ve low -> high,-ve -> high to low) , plotting phase spectrum.