Code covered by the BSD License  

Highlights from
A Benchmark Problem for Model Based Control System Tests - 001

image thumbnail
from A Benchmark Problem for Model Based Control System Tests - 001 by Yogananda Jeppu
A benchmark problem for model based control system testing

compslp(x1,x2,y1,y2,x)
function o = compslp(x1,x2,y1,y2,x)
% Compute the slope for the interpolation

% (c) Yogananda Jeppu yvj_2000@yahoo.com

o = ((y2-y1)/(x2-x1))*(x-x1)+y1;

Contact us