f = uimenu('Label','Workspace');
    uimenu(f,'Label','List Contents','Callback','whos');
    uimenu(f,'Label','Save','Callback','save');
    uimenu(f,'Label','Clear','Callback','clear all');