## Define LaTeX colors that match Matlab plots

There exist several methods to define a specific color in LaTeX. My favorite one uses the xcolor package. First, place it to the preamble of the LaTeX file: Then, you can define a new color as and use it in LaTeX text as Finally, the following colors correspond to those of Matlab plot (starting from version R2014b) The following colors have been used in older versions of Matlab.