Created
March 12, 2018 03:05
-
-
Save vvksh/a582e987f9d82710b8b904f27cfc5fd8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\usepackage{listings} | |
\usepackage[dvipsnames,table,xcdraw]{xcolor} | |
\definecolor{dkgreen}{rgb}{0,0.6,0} | |
\definecolor{gray}{rgb}{0.5,0.5,0.5} | |
\definecolor{mauve}{rgb}{0.58,0,0.82} | |
\lstset{language=Matlab,% | |
%basicstyle=\color{red}, | |
breaklines=true,% | |
morekeywords={matlab2tikz}, | |
keywordstyle=\color{blue},% | |
morekeywords=[2]{1}, keywordstyle=[2]{\color{black}}, | |
identifierstyle=\color{black},% | |
stringstyle=\color{lilas}, | |
commentstyle=\color{ForestGreen},% | |
showstringspaces=false,%without this there will be a symbol in the places where there is a space | |
numbers=left,% | |
numberstyle={\tiny \color{black}},% size of the numbers | |
numbersep=9pt, % this defines how far the numbers are from the text | |
emph=[1]{for,end,break},emphstyle=[1]\color{red}, %some words to emphasise | |
%emph=[2]{word1,word2}, emphstyle=[2]{style}, | |
} | |
\section*{Matlab Code} | |
\lstinputlisting{myfun.m} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment