Added loadtxt section to Day1 Session5.
authorPuneeth Chaganti <punchagan@fossee.in>
Thu, 29 Oct 2009 00:39:33 +0530 (2009-10-28)
changeset 259 bb77a470e00a
parent 258 8d5ac98e3247
child 260 1f5fea506927
child 261 9cce24d00957
child 274 34f71bdd0263
Added loadtxt section to Day1 Session5.
day1/session5.tex
--- a/day1/session5.tex	Thu Oct 29 00:17:49 2009 +0530
+++ b/day1/session5.tex	Thu Oct 29 00:39:33 2009 +0530
@@ -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}
 
+%% \begin{frame}[fragile]
+%%   \frametitle{\typ{loadtxt}}
+%% \end{frame}
+
 \section{Interpolation}
-
 \begin{frame}[fragile]
 \frametitle{Interpolation}
 \begin{itemize}
@@ -145,14 +164,6 @@
 \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}