\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{sbc-template}
\usepackage{graphicx,url}
\graphicspath{{Imagens/}}
\usepackage[brazil]{babel}   
%\usepackage[latin1]{inputenc}  
%\usepackage[utf8]{inputenc}
\usepackage[]{xcolor}
% UTF-8 encoding is recommended by ShareLaTex
%%%%%%%%%%%%%%
\usepackage{listings}
\usepackage{color}
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}
\definecolor{bg}{rgb}{0.95,0.95,0.95}
\lstset{ 
  language=Octave,                % the language of the code
  basicstyle=\footnotesize,       % the size of the fonts that are used for the code
  numbers=left,                   % where to put the line-numbers
  numberstyle=\tiny\color{gray},  % the style that is used for the line-numbers
  stepnumber=1,                   % the step between two line-numbers. If it's 1, each line 
                                  % will be numbered
  numbersep=5pt,                  % how far the line-numbers are from the code
  %backgroundcolor=\color{bg},     % choose the background color. You must add \usepackage{color}
  showspaces=false,               % show spaces adding particular underscores
  showstringspaces=false,         % underline spaces within strings
  showtabs=false,                 % show tabs within strings adding particular underscores
  frame=single,                   % adds a frame around the code
  rulecolor=\color{black},        % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. commens (green here))
  tabsize=4,                      % sets default tabsize to 2 spaces
  captionpos=b,                   % sets the caption-position to bottom
  breaklines=true,                % sets automatic line breaking
  breakatwhitespace=false,        % sets if automatic breaks should only happen at whitespace
  title=\lstname,                 % show the filename of files included with \lstinputlisting;
                                  % also try caption instead of title
  keywordstyle=\color{blue}, %blue     % keyword style
  commentstyle=\color{dkgreen}, %dkgreen   % comment style
  stringstyle=\color{mauve}, %mauve      % string literal style
  escapeinside={\%*}{*)},         % if you want to add a comment within your code
  morekeywords={*,...}            % if you want to add more keywords to the set
}
%%%%%%%%%%%%%%
\usepackage{xcolor}
\definecolor{mygreen}{RGB}{28,172,0} % color values Red, Green, Blue
\definecolor{mylilas}{RGB}{170,55,241}
\begin{document}
     
\sloppy
\title{SCD - Sitemas de Controle Dinâmicos: Função de Transferência}
\author{Igor Otoni, Egmon Pereira}
\address{CEFET-MG Campus Timóteo}
\maketitle
\lstset{language=Matlab,%
    %basicstyle=\color{red},
    backgroundcolor=\color{cyan!10},
    breaklines=true,%
    morekeywords={matlab2tikz},
    keywordstyle=\color{blue},%
    morekeywords=[2]{1}, keywordstyle=[2]{\color{black}},
    identifierstyle=\color{black},%
    stringstyle=\color{mylilas},
    commentstyle=\color{mygreen},%
    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{Exercício 1}
\mbox{}
\subsection{Letra A}
\mbox{}
\begin{center}
\setlength{\fboxsep}{0pt}
\setlength{\fboxrule}{1pt}
\fbox{\includegraphics[width=0.8\textwidth]{letra_a_dados}}
\end{center}
\subsection{Letra B}
\mbox{}
\begin{center}
\setlength{\fboxsep}{0pt}
\setlength{\fboxrule}{1pt}
\fbox{\includegraphics[width=0.8\textwidth]{letra_b_correlacao}}
\end{center}
\subsection{Letra D}
\mbox{}
\begin{verbatim}
A(z) = 1 - 1.001 z^-1
A(z) = 1 - 1.81 z^-1 + 0.8105 z^-2
A(z) = 1 - 1.649 z^-1 + 0.4638 z^-2 + 0.1836 z^-3
A(z) = 1 - 1.694 z^-1 + 0.4485 z^-2 + 0.3619 z^-3 - 0.1169 z^-4
\end{verbatim}
\subsection{Letra F}
\mbox{}
\begin{center}
\setlength{\fboxsep}{0pt}
\setlength{\fboxrule}{1pt}
\fbox{\includegraphics[width=0.8\textwidth]{letra_f_identificacao}}
\end{center}
\subsection{Letra G}
\mbox{}
O modelo 4º modelo foi o que obteve melhor representação do sistema.
\subsection{Letra I}
\mbox{}
\begin{center}
\setlength{\fboxsep}{0pt}
\setlength{\fboxrule}{1pt}
\fbox{\includegraphics[width=0.8\textwidth]{letra_i_validacao}}
\end{center}
\subsection{Letra J}
\mbox{}
O modelo 4º modelo foi o que obteve melhor predição do sistema, assim como a melhor respresentação. Esse modelo seria o escolhido entre todos os outros, pois oferece uma simulação mais confiável, logo têm mais utilidade que os outros.
\subsection{Letra J}
\mbox{}
\begin{verbatim}
rmse_1 = 1.2187
rmse_2 = 0.5466
rmse_3 = 0.3991
rmse_4 = 0.3881
mape_1 = 20.7965
mape_2 = 13.1152
mape_3 = 11.0820
mape_4 = 0
\end{verbatim}
Os erros comprovam a escolha pelo modelo 4, pois ele obteve o menor erro nos dois cálculos.
\section{Códigos}
 
\lstinputlisting[language=Octave]{Codigos/Sistema_01.m}
\end{document}