title: Text and Plots in Matlab to LaTeX
body: <p>I like to create a "report generation" script in Matlab. </p>
  
  <p>Suppose we have a Matlab array, <code>data</code> and we want to export the following to a .tex file:
  "The information in the first element of data is X." This would be followed by a plot of X.</p>
  
  <p>I have already tried <code>help latex</code> in Matlab and aware of the various packages on Matlab file exchange. However I have seen nothing so far that will allow me to export <strong>both text and plots</strong> in the same Matlab script to a .tex file. </p>