Error while selecting Ts point

ndex exceeds the number of array elements. Index must not exceed 50.

Error in ts_plot (line 42)
disp(‘Please select a point on the figure to plot time series (TS)’)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Error while evaluating UIControl Callback.
@mdelgado @ABraun
Thank you