\begin{frame}[fragile]

Let's work on this both on Laptop and Triton:\\

\verb+spmd_example1_numint.m+  
{\tiny (Link doesn't work here, use index.html)}

\begin{lstlisting}
p = parpool;  % Start parallel pool.
numlabs=p.NumWorkers
%%
spmd
    a = (labindex - 1)/numlabs;
    b = labindex/numlabs;
    fprintf('Subinterval: [%-4g, %-4g]\n', a, b);
end
\end{lstlisting}
\end{frame}
