Differences between revisions 2 and 3
Revision 2 as of 2010-12-17 06:21:22
Size: 561
Editor: trss
Comment:
Revision 3 as of 2010-12-17 09:38:11
Size: 595
Editor: trss
Comment:
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
%python
Line 10: Line 9:
from scipy import *
from matplotlib.pyplot import *
x = linspace(0, 2*pi, 100)
plot(x,sin(x))
xlabel('x'), ylabel('sin(x)')
title('Plot created by Rudra Pratap')
savefig('sin.png')
import scipy as sp
import matplotlib.pyplot as mpl_pp
x = sp.linspace(0, 2*sp.pi, 100)
mpl_pp.plot(x,sin(x))
mpl_pp.xlabel('x'), mpl_pp.ylabel('sin(x)')
mpl_pp.title('Plot created by Rudra Pratap')
mpl_pp.savefig('sin.png')
  • Book

    Getting started with MATLAB

    Author

    Rudra Pratap

    Edition

reset()
import scipy as sp
import matplotlib.pyplot as mpl_pp
x = sp.linspace(0, 2*sp.pi, 100)
mpl_pp.plot(x,sin(x))
mpl_pp.xlabel('x'), mpl_pp.ylabel('sin(x)')
mpl_pp.title('Plot created by Rudra Pratap')
mpl_pp.savefig('sin.png')

  • Solution by:

    • T R Shyam Sundar, Student, CMI
    • Sonam Kumar, Student, CMI
    • Vignesh Ganapathiraman, Student, CMI
    • Pooja Kalra, Student, Malwa Institute of Technology

Pratap-2.3-1 (last edited 2010-12-17 09:38:11 by trss)