sample
R2026bDescription
Add-On Required: This feature requires the 3D Asset Processing Library for MATLAB add-on.
samples the texture object colors = sample(texObj,uv)texObj at the specified UV coordinates
uv and returns the interpolated RGBA color values
colors. The object function applies the offset, scale, and rotation
transform, wraps coordinates according to the Wrap mode, then samples
using nearest-neighbor or bilinear interpolation based on the
Interpolation property, as specified in the input texture object
texObj.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2026b

