diff options
author | Puneeth Chaganti | 2009-10-29 00:39:33 +0530 |
---|---|---|
committer | Puneeth Chaganti | 2009-10-29 00:39:33 +0530 |
commit | da363caede7e7f4fbdf50218e46432a94b8555c0 (patch) | |
tree | 96c76251265af214d7299bd0d23df406ba605114 | |
parent | 80bac349ccb3030cbe9a7acd4591d00684082ed6 (diff) | |
download | workshops-da363caede7e7f4fbdf50218e46432a94b8555c0.tar.gz workshops-da363caede7e7f4fbdf50218e46432a94b8555c0.tar.bz2 workshops-da363caede7e7f4fbdf50218e46432a94b8555c0.zip |
Added loadtxt section to Day1 Session5.
-rw-r--r-- | day1/session5.tex | 37 |
1 files changed, 24 insertions, 13 deletions
diff --git a/day1/session5.tex b/day1/session5.tex index 2334c13..ac1d8b6 100644 --- a/day1/session5.tex +++ b/day1/session5.tex @@ -118,14 +118,33 @@ \titlepage \end{frame} -\begin{frame} - \frametitle{Outline} - \tableofcontents -% \pausesections +%% \begin{frame} +%% \frametitle{Outline} +%% \tableofcontents +%% % \pausesections +%% \end{frame} + + +\section{\typ{loadtxt}} + +\begin{frame}[fragile] + \frametitle{\typ{loadtxt}} + \begin{itemize} + \item Load data from a text file. + \item Each row must have same number of values. + \end{itemize} +\begin{lstlisting} +In []: data = loadtxt('pendulum.txt') +In []: L = data[:,0] +In []: T = data[:,1] +\end{lstlisting} \end{frame} -\section{Interpolation} +%% \begin{frame}[fragile] +%% \frametitle{\typ{loadtxt}} +%% \end{frame} +\section{Interpolation} \begin{frame}[fragile] \frametitle{Interpolation} \begin{itemize} @@ -145,14 +164,6 @@ In []: plot(x, y, '.') \end{lstlisting} \end{frame} -\begin{frame} - \frametitle{\typ{loadtxt}} - \begin{itemize} - \item Load data from a text file. - \item Each row must have same number of values. - \end{itemize} -\end{frame} - %% \begin{frame}[fragile] %% \frametitle{Interpolation \ldots} %% \begin{small} |