| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simscape |
| Contents | Index |
| Learn more about Simscape |
Physical Signals/Lookup Tables

The PS Lookup Table (1D) block computes an approximation to some function y=f(x) given data vectors x and y. Both the input and the output are physical signals.
The length of the x and y data vectors provided to this block must match. Also, the x data vector must be strictly monotonically increasing (i.e., the value of the next element in the vector is greater than the value of the preceding element).
You define the lookup table by specifying the Vector of input values parameter as a 1-by-n vector and the Vector of output values parameter as a 1-by-n vector. The block generates output based on the input values using the selected interpolation and extrapolation methods. You have a choice of three interpolation methods and two extrapolation methods.

Specify the vector of input values as a tabulated 1-by-n array. The input values vector must be strictly monotonically increasing. The values can be non-uniformly spaced.
Specify the vector of output values as a tabulated 1-by-n array. The output values vector must be the same size as the input values vector.
Select one of the following interpolation methods for approximating the output value when the input value is between two consecutive grid points:
Select one of the following extrapolation methods for determining the output value when the input value is outside the range specified in the argument list:
From last 2 points — Extrapolates using the linear method (regardless of the interpolation method specified), based on the last two output values at the appropriate end of the range. That is, the block uses the first and second specified output values if the input value is below the specified range, and the two last specified output values if the input value is above the specified range.
From last point — Uses the last specified output value at the appropriate end of the range. That is, the block uses the last specified output value for all input values greater than the last specified input argument, and the first specified output value for all input values less than the first specified input argument.
The block has one physical signal input port and one physical signal output port.
[1] D. Kahaner, Cleve Moler, Stephen Nash, Numerical Methods and Software, Prentice Hall, 1988
[2] W.H. Press, B.P. Flannery, S.A. Teulkolsky, W.T. Wetterling, Numerical Recipes in C: The Art of Scientific Computing, Cambridge University Press, 1992
![]() | PS Integrator | PS Lookup Table (2D) | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |