Main Content


Reset object state and property values


reset(obj) resets the internal state and input properties of the object obj.

  • If obj writes or reads a file, reset resets the object to the beginning of the file.

  • If obj changes properties, reset resets the properties to their initial default values.

  • If obj uses a random number generation seed, reset resets the seed property.

Input Arguments

collapse all

Object whose state you want to reset.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Introduced in R2019a