title: Julia language: sub vs. slice function
body: <p>Could someone explain <strong>in simple terms</strong> the difference between julia's v0.4 function: </p>
  
  <p><a href="http://docs.julialang.org/en/latest/stdlib/arrays/#Base.sub" rel="noreferrer">sub</a> and <a href="http://docs.julialang.org/en/latest/stdlib/arrays/#Base.slice" rel="noreferrer">slice</a>   (and maybe <a href="http://docs.julialang.org/en/latest/stdlib/arrays/#Base.slicedim" rel="noreferrer">slicedim</a>)</p>
  
  <p>Some simple example would be greatly appriciated.
  Thanks a lot</p>