clearClearing variables
clearclear('all')clear('variables')clear all, is not supported. Use clear('all') instead.clear(v1, v2, v3, ..., vn)v1, v2, ..., vn are character vectors containing variable names. This statement clears the listed variables in the workspace, and free the memory spaces occupied by them. a = 1;
b = 2;
clear('a', 'b') % OK.
clear a b % Command syntax not supported.
a = 1
b = 2
clear('a', 'b')
a =
1.000
b =
2.000
Variables a and b have been cleared