Clear variable from Memory in MATLAB
Clearing variables from memory, with the help of clearvars operation. The clearvars operation is used to clear the specified variables from memory or from the currently active workspace.
clearvars variables clearvars -except keepVariables
Parameters: This function accepts a parameter.
- variables: These are the specified variables that are going to be cleared.