www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/ClearASingleVariableExample.m

    %% Clear a Single Variable
% Define two variables |a| and |b|, and then clear |a|.

a = 1;
b = 2;
clear a

%%
% Only variable |b| remains in the workspace.
whos