Files
POC-Matlab/test.m
Patrick McDonagh 59909df50e Adds algorithm to Well class. Almost working
Position returned is too large by a factor of ~2
2017-07-19 17:44:35 -05:00

11 lines
381 B
Matlab

malletData = csvread('mallet.csv');
mallet = Well("Mallet");
for i = 2:size(malletData,1)
[dhPos, dhLoad, status] = mallet.calc(malletData(i,1), malletData(i-1,1), malletData(i,2));
if status == 1
mallet.currentCard.push(malletData(i,1), malletData(i,2), dhPos, dhLoad);
end
end
figure;plot(mallet.currentCard.downholePosition,mallet.currentCard.downholeLoad)