Files
senior-design/strut/Func1.m
2010-04-17 12:00:00 -05:00

10 lines
200 B
Matlab
Executable File

function F = Func1(theta,P,yrqd);
% Derivative of function 1
F=ppval(P,theta)*sin(theta)-yrqd;
if theta < 0
F=-theta^2+pi*theta-yrqd;
elseif theta > pi
F=-theta^2+pi*theta-yrqd;
end;