title: Filling between two curves, according to a colormap given by a function MATLAB
body: <p>How can the area between two curves be filled by a colormap that fits the values of a function.</p>
  
  <p>for example, here are the two curves, and the function of the values I would like to have in between</p>
  
  <pre><code>L=5;
  x=1:10;
  t=(1:10)/10;
  figure(1)
  subplot(2,1,1)
  plot(x,t,x+L,t)
  subplot(2,1,2)
  plot(x,exp(-(x/L).^2))
  </code></pre>
  
  <p>The filled area should be taken from any colormap.</p>
  
  <p><a href="https://i.stack.imgur.com/ujFe7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ujFe7.png" alt="enter image description here"></a></p>