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:

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