title: How to smoothly connect two signals in matlab
body: <p>I need to generate two signals which in the end I want to connect. The problem is that the end condition of the 1st signal can be quite different compared to the initial conditions in my 2nd signal. Subsequently it can result in a sudden and unrealistic jump in my final signal. Final signal is the 2 connected signals.</p>
  
  <p>How could I smooth the connection in my final signal?</p>
  
  <p>Thanks!</p>