[Master Index]
[Index for .]
sc
(./sc.m)
Function Synopsis
v = scale(vo, target_max, target_min);
Help text
function v = scale(vo, target_max, target_min);
Cross-Reference Information
This function is called by
Listing of function ./sc.m
function v = scale(vo, target_max, target_min);
%function v = scale(vo, target_max, target_min);
high = max(vo);
low = min(vo);
factor = (target_max-target_min)/(high-low);
offset = target_min - low*factor;
v = (vo)*factor+offset;
Produced by mat2html on Wed Jul 10 14:55:44 US/Pacific 1996
Cross-Directory links are: OFF