title: 2-D line gradient color in Matlab
body: <p>Is it possible to add gradient color to 2-D line in Matlab, especially when you have small number of data points (less than 10?), so the result would be similar to one in image below?</p>
  
  <p><a href="https://i.stack.imgur.com/Fs8K1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Fs8K1.png" alt="enter image description here"></a></p>