Friday, May 20, 2016

Numpy for Signal and Image Processing

Open jupyter notebook in conda

 %matplotlib inline  #enable matplotlib for interactive plotting,  in a same notebook (inline)

 import matplotlib.pyplot as plt # for plotting

import numpy as np    # for array processing

  1. To plot a Ramp Signal
  
         x=np.linspace(0,3,20)
         y=np.linspace(0,9,20)
          plt.plot(x,y)
          plt.plot(x,y,'o')

 

Cosine Signal Generation:

    time=np.linspace(0,2*np.pi,100)
    cosine=np.cos(time)

    plt.plot(time,cosine)
   
 

Tuesday, May 17, 2016

Anaconda


1. First Check List of packages Installed in Anaconda Typing : conda list, in the  terminal.

2. To install a new package, type, conda install packagename

3.Use Spyder IDE to develop a code