Commit fc720dc7 authored by Lore, Jeremy's avatar Lore, Jeremy
Browse files

Update deriv.m

parent a0ce82d5
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3,6 +3,11 @@ function yp = deriv(x,y)
% Should be the same as idl deriv
% Uses 3 pt Lagrange interpolating polynomial

if all(size(x) ~= size(y))
%     error('Inputs must be same size')
    y = y.';
end

% clearvars;
% tic;
% x = 0:0.1:10;