Have you tried debugging the line
app.LoadedDataTable.Data = app.DATA(1:15,[1:4,13]);
I would check the size of app.DATA
I believe you may be exceeding the array bounds of app.DATA. Once you are in debug mode and trigger that line, type the command below in the command window which should show k>> in debug mode.
size(DATA)
I made a test app, but could not replicate your error (see attached).