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

    %% Strip Different Character from String Array
% Create a string array with elements that represent numbers. The strings 
% include leading zeroes to make them all the same length.
str = string({'0095.36';
              '0003.44';
              '0007.82'})
             
%%
% Delete the leading zeroes.
newStr = strip(str,'left','0')