|
Size: 560
Comment:
|
← Revision 3 as of 2010-12-17 09:38:11 ⇥
Size: 595
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') |
| Line 24: | Line 23: |
| * Vignesh Ganapathiraman, Student CMI | * Vignesh Ganapathiraman, Student, CMI |
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
