% Bill Herrington % April 23, 2009 % GPU TARDEC project % hub_matlab.m % This function will generate the hub height using matlab function HubHeight=hub_matlab2(r,X,Y,Z, Num) % Roll along Last=size(X,2); HubHeight=zeros(size(X)); for i1=1:Last %fprintf('(i1,max)=(%d,%d)\n', i1, Last); Cx=X(i1); Cy=Y(i1); % Find start of wheel-ground interaction if (i1>Num) tempfirst=i1-Num; else tempfirst=1; end % Find end of wheel ground interaction if (i1+NumMax) Max=TempHeight; end end end HubHeight(i1) = Max; % % At each point calculate the circle defining the wheel % if i1