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

    %% Remove Trailing Blanks from Cell Array
% Remove trailing blanks from all the character vectors in a cell array and 
% display them.
A = {'MATLAB    ','SIMULINK    ';
     'Toolboxes    ','MathWorks    '}
 
%%
B = deblank(A)