testing-debugging/quickref.tex
author bhanu
Thu, 11 Nov 2010 03:00:24 +0530
changeset 480 42f7aa36f1bc
parent 401 abf092be95ef
child 489 bc8d01c3c9b3
permissions -rw-r--r--
language check done for `getting started with functions`
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)|}