Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 66a7aa99 authored by Nicolas Bellot's avatar Nicolas Bellot Committed by hhakim
Browse files

doc latex fichier matlab white background

parent 8adf7472
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@
\paragraph{} An experience of Brain Source Localization using several gain matrices including FAuSTs and several solvers is provided. After configuring the matlab path (cf section \ref{sec:firstUseMatlabPath}). You can execute the matlab script \textbf{demo/Brain\_source\_localization/BSL.m} to run this experiment and \textbf{demo/Brain\_source\_localization/Fig\_BSL.m} to display the following pictures illustrating the speed-up using a Faµst.
You just need to type :
In the Matlab terminal, you just need to type :
\begin{lstlisting}
>> BSL
>> Fig_BSL
......
......@@ -21,15 +21,15 @@ In the Matlab terminal, set your working directory to /"HOMEDIR"/Documents/MATLA
>> quick_start
\end{lstlisting}
\paragraph{}In this script, first of all, a Faust of size 4000x5000 is loaded from a previous one that is saved into a matfile :
\lstinputlisting[firstline=47,lastline=48]{../../misc/demo/Quick_start/quick_start.m}
\lstinputlisting[firstline=47,lastline=48,backgroundcolor=\color{white}]{../../misc/demo/Quick_start/quick_start.m}
\newpage
\paragraph{}Secondly, a list of overloaded matlab function shows that a Faust is handled as a normal Matlab builtin matrix.
\lstinputlisting[firstline=51,lastline=78]{../../misc/demo/Quick_start/quick_start.m}
\lstinputlisting[firstline=51,lastline=78,backgroundcolor=\color{white}]{../../misc/demo/Quick_start/quick_start.m}
\paragraph{}Finally, it performs a little time comparison between multiplication by a Faust or its full matrix equivalent.
This is in order to illustrate the speed-up induced by the Faust. This speed-up should be around 30 (depending on your machine).
%\lstinputlisting[firstline=84,lastline=100]{../../misc/demo/Quick_start/quick_start.m}
%\lstinputlisting[firstline=84,lastline=100,backgroundcolor=\color{white}]{../../misc/demo/Quick_start/quick_start.m}
\newpage
\section{Construct a Faust from a given matrix}\label{sec:firstUseBuildFromMatrix}
......@@ -38,14 +38,14 @@ This is in order to illustrate the speed-up induced by the Faust. This speed-up
>> factorise_matrix
\end{lstlisting}
In this script, from a given matrix A of size 100x200 :
\lstinputlisting[firstline=42,lastline=47]{../../misc/demo/Quick_start/factorise_matrix.m}
\lstinputlisting[firstline=42,lastline=47,backgroundcolor=\color{white}]{../../misc/demo/Quick_start/factorise_matrix.m}
We generate the parameters of the factorisation from :\newline
-the dimension of A (\textbf{dim1} and \textbf{dim2}),\newline
-\textbf{nb\_factor} the number of factor of the Faust,\newline
- and \textbf{rcg} the Rational Complexity Gain, which represents the theoretical memory gain and multiplication speed-up of the Faust compared to the initial matrix
\lstinputlisting[firstline=51,lastline=56]{../../misc/demo/Quick_start/factorise_matrix.m}
\lstinputlisting[firstline=51,lastline=56,backgroundcolor=\color{white}]{../../misc/demo/Quick_start/factorise_matrix.m}
Then we factorize the matrix \textbf{A} into a Faust \textbf{Faust\_A}
\lstinputlisting[firstline=58,lastline=59]{../../misc/demo/Quick_start/factorise_matrix.m}
\lstinputlisting[firstline=58,lastline=59,backgroundcolor=\color{white}]{../../misc/demo/Quick_start/factorise_matrix.m}
And as for quickstart.m, we make some time comparison at the end.
\newpage
......@@ -55,7 +55,7 @@ To see an example of building a Faust from its factors, you can run construct\_F
>> construct_Faust_from_factors
\end{lstlisting}
This following example shows how to build a faust from a cell-array representing its factors.
\lstinputlisting[firstline=44,lastline=72]{../../misc/demo/Quick_start/construct_Faust_from_factors.m}
\lstinputlisting[firstline=44,lastline=72,backgroundcolor=\color{white}]{../../misc/demo/Quick_start/construct_Faust_from_factors.m}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment