What is the difference between clc and clear all in Matlab?
<p>I am new to MATLAB and was going through some machine learning projects written in MATLAB. Some files start with the following lines:</p>

<pre><code>clear all;
close all;
clc;
</code></pre>

<p>I understand that these lines together render a clean work space. Also, that <code>close all</code> is used to close all figures. </p>

<p>If both the <code>clear all</code> and <code>clc</code> are used to clear command window, then what is the difference between the two? </p>