[770c98]: / Application / Examples / BikeSpring / Model / AlphaLimit.m

Download this file

7 lines (5 with data), 271 Bytes

1
2
3
4
5
6
function [alphalim] = AlphaLimit(xmin,x,xmax,d)
% This function finds the allowable limits of alpha when vector alpha*d originating
% at point x must be limited within the box constraints xmin and xmax
alphalim[1] = min((xmax-x)/d);
alphalim[2] = max((x-xmin)/d);