Write a MATLAB function that accepts a signal as a vector de
     Write a MATLAB function that accepts a signal (as a vector) defined on some time interval and returns a reversed, time-shifted version of the signal. For example, the signal x(t) shown on the left is reversed and time-shifted to the function x(t-r) on the right.   
  
  Solution
t=[-1 0 1 2];
 x=[0 2 1 0];
 subplot(2,1,1);
 title(\'Continuous\');
 plot(t,x)
 %reverse
 r=1;
 x2=fliplr(x);
 t1=fliplr(t);
 r1=r*[1 1 1];
 t2=t1-r1;
 subplot(2,1,2);
 title(\'Reverse time shifted Continuous\');
 plot(t2,x2)

