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

    %% Display Workspace Variable Names
% List the names of variables in the current workspace that start with the letter |a|.
who a*

%%
% Display the names of variables in the current workspace that end with
% |ion|.
who -regexp ion$