Differences between revisions 1 and 2
Revision 1 as of 2010-12-18 11:12:33
Size: 660
Editor: trnkarthik
Comment:
Revision 2 as of 2010-12-18 11:13:01
Size: 662
Editor: trnkarthik
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
{{{print "Plotting a graph when a matrix is given" {{{
print "Plotting a graph when a matrix is given"
  • Book

    Linear Algebra

    Author

    Gilbert Strang

    Edition

print "Plotting a graph when a matrix is given"
A=matrix([[-1,1,0,0],[-1,0,1,0],[0,1,0,-1],[0,0,-1,1]])
print "Given Matrix is: A=\n",A
print "Graph for the given matrix A can be plotted using plot() function as:"
plot(A)

Result:

Plotting a graph when a matrix is given
Given Matrix is: A=
[-1  1  0  0]
[-1  0  1  0]
[ 0  1  0 -1]
[ 0  0 -1  1]
Graph for the given matrix A can be plotted using plot() function as:

  • Solution by:

    • <T.R.N.Karthik>, <Student>, <Gitam University>

Strang-2.5-10-U (last edited 2010-12-18 11:13:01 by trnkarthik)