title: MATLAB figure shift plot horizontally
body: <p>I have a figure(not using the plot command) in which the xdata is stored as an array of cells(as opposed to a matrix).
  What I want to do is shift the plot horizontally, which could be done by adding a constant value to each element of xdata or shift the x-axis without affecting the plot.</p>
  
  <p>I am not able to do so, and would really appreciate any help. Btw, my knowledge of MATLAB is very limited.</p>
  
  <p>This is what I tried, and I seem to be getting an error:
  set(findobj('type', 'line', 'color', 'r',),'xdata', new)</p>
  
  <p>where 'new' is another cell array of the same dimensions as 'xdata'. But I don't see why this results in the error: "conversion to double fromcell is not possible"</p>