Skip to content

Instantly share code, notes, and snippets.

@pboesu
Created July 12, 2017 20:17
Show Gist options
  • Save pboesu/460e5a9a046ca56ab199d838a2e6600a to your computer and use it in GitHub Desktop.
Save pboesu/460e5a9a046ca56ab199d838a2e6600a to your computer and use it in GitHub Desktop.
"Getting started" example run on MATLAB R2014b
Warning: Function cummax has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.
>> edit ths_ds1.dat
>> [t,s]=ldf('ths_ds1.dat');
clf
plot(t,s,'o')
xlabel('Time in seconds')
ylabel('Drawdown in meters')
title('The Fetter data set')
>> diagnostic(t,s)
Attempted to access Dk(:,2); index out of bounds because
size(Dk)=[21,1].
Error in spline (line 62)
Dk = knots(2:nk,:) - knots(1:nk-1,:); D = Dk(:,2) ./
Dk(:,1);
Error in ldiffs (line 23)
yi=spline(x,y,xi);
Error in diagnostic (line 50)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment