Академический Документы
Профессиональный Документы
Культура Документы
end;
%Inputting the value of the USW that the user would like to see
%InputValUSW = Inputdlg('Please enter the value of the USW that you wish to chec
k', 'Enter the value of the USW');
%for Counter = UL_UW:Inc_UW:LL_UW
% for counterL = LL_LW:Inc_LW:LL_LW
%
while counter > counterL
%
counter = counter + USW;
%
counterL = counter + LSW;
%
if InputValUSW = xupper[counter]
%
then
%
% calculate the gradients of the lines
%
MUY(counter) = USCy - USWy;
%
MUX(counter) = USCx - USWx;
%
MLY(counter) = LSCy - LSWy;
%
MLX(counter) = LSCx - LSWx;
%
MU(counter) = MUY / MUX;
%
ML(counter) = MLY / MLX;
%determining the y intercepts
CU(counter) = USWy - (MU*USWx);
CL(counter) = LSWy - (ML*LSWx);
%
%
%
%
end;
% end;
%end;
%end;