Clear command line, variables and command history in MATLAB
Here are three useful MATLAB commands.
To clear the command line:
clc
To clear all variables:
clear all
To clear the command history:
com.mathworks.mlservices.MLCommandHistoryServices.removeAll
Just putting this information down for my own reference so I won’t have to search for it later.
