Loading files
function val = mapf(x, in_min, in_max, out_min, out_max)
val = (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
if (val < out_min)
val = out_min;
elseif (val > out_max)
val = out_max;
endc60021a68This file is pinned to the selected release. Download the original to open it in your design tool.