Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- usepackage{listings}
- definecolor{identifiercolor}{rgb}{.4,.6,.56}
- definecolor{stringcolor}{rgb}{170,55,241}
- definecolor{inactivecolor}{rgb}{28,172,0}
- lstset{
- basicstyle={footnotesizedeffvm@Scale{.85}fontfamily{fvm}selectfont},
- breaklines=true,
- frame=single,%
- % escapeinside={%*}{*)},
- keywordstyle={bfseriescolor{blue}},
- stringstyle={bfseriescolor{stringcolor}},
- identifierstyle={bfseriescolor{black}},
- commentstyle=color{identifiercolor},
- showstringspaces=false}
- renewcommand{lstlistingname}{Listing}
- begin{lstlisting[extendedchars=true,caption="trackingexample.m",language=Matlab]
- function result_txt_vis()
- clear all
- t = importdata('result.txt'); Ani = 1;
- switch Ani
- case 1
- end{lstlisting}
- begin{lstlisting}[extendedchars=true,caption="Ex1.c",language=C]
- #ifndef DEBUG
- clock_t end = clock();
- double time_spent = (double) (end - begin) / CLOCKS_PER_SEC;
- printf("running-time: %en", time_spent); //display running-time
- #endif
- return 0;
- }
- end{lstlisting}
Add Comment
Please, Sign In to add comment