resize
Syntax
Description
resize(
        resizes experience buffer buffer,maxLength)buffer to have a maximum length of
          maxLength.
- If - maxLengthis greater than or equal to the number of experiences stored in the buffer, then- bufferretains its stored experiences.
- If - maxLengthis less than the number of experiences stored in the buffer, then- bufferretains only the- maxLengthmost recent experiences.
Examples
Input Arguments
Version History
Introduced in R2022b