testing-debugging/quickref.tex
author anand
Mon, 15 Nov 2010 15:49:26 +0530
changeset 514 ca9d084d0c87
parent 401 abf092be95ef
child 489 bc8d01c3c9b3
permissions -rw-r--r--
checklist ok for `getting started with 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)|}