testing-debugging/quickref.tex
author bhanu
Tue, 16 Nov 2010 23:26:42 +0530
changeset 517 71697b10f4ae
parent 401 abf092be95ef
child 489 bc8d01c3c9b3
permissions -rw-r--r--
Language check done for `manipulating strings`
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
401
abf092be95ef Adding testing and debugging files
Amit Sethi
parents:
diff changeset
     1
Creating a linear array:\\
abf092be95ef Adding testing and debugging files
Amit Sethi
parents:
diff changeset
     2
{\ex \lstinline|    x = linspace(0, 2*pi, 50)|}
abf092be95ef Adding testing and debugging files
Amit Sethi
parents:
diff changeset
     3
abf092be95ef Adding testing and debugging files
Amit Sethi
parents:
diff changeset
     4
Plotting two variables:\\
abf092be95ef Adding testing and debugging files
Amit Sethi
parents:
diff changeset
     5
{\ex \lstinline|    plot(x, sin(x))|}
abf092be95ef Adding testing and debugging files
Amit Sethi
parents:
diff changeset
     6
abf092be95ef Adding testing and debugging files
Amit Sethi
parents:
diff changeset
     7
Plotting two lists of equal length x, y:\\
abf092be95ef Adding testing and debugging files
Amit Sethi
parents:
diff changeset
     8
{\ex \lstinline|    plot(x, y)|}