function [ condition ] = determineCondition(displacements2,displacements1) %UNTITLED2 Summary of this function goes here % Detailed explanation goes here tolerance = 0.001; L2 = (displacements2(1,:).^2+displacements2(2,:).^2+displacements2(3,:).^2).^(0.5); % L1 = (displacements1(1,:).^2+displacements1(2,:).^2+displacements1(3,:).^2).^(0.5); % % L = abs(L2-L1)./L1*100; % % if max(L) > tolerance % condition = 1; % else % condition = 0; % end disp(max(L2)); if max(L2) > tolerance condition = 1; else condition = 0; end end