Home > freetb4matlab > fixed > lookup_table.m

lookup_table

PURPOSE ^

% Using the lookup table created by @dfn{create_lookup_table}, find the value

SYNOPSIS ^

function y = lookup_table (table, x, interp, extrap);

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {@var{y} =} lookup_table (@var{table}, @var{x})
% @deftypefnx {Function File} {@var{y} =} lookup_table (@var{table}, @var{x}, @var{interp}, @var{extrap})
% Using the lookup table created by @dfn{create_lookup_table}, find the value
% @var{y} corresponding to @var{x}. With two arguments the lookup is done
% to the nearest value below in the table less than the desired value. With
% three arguments a simple linear interpolation is performed. With four
% arguments an extrapolation is also performed. The exact values of arguments
% three and four are irrelevant, as only there presence detremines whether
% interpolation and/or extrapolation are used.
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003