| MATLAB Function Reference | ![]() |
Syntax
str = deblank(str)
c = deblank(c)
Description
str = deblank( 刪除位於字串 str)
str 尾端的連續空白字元。
c = deblank(c),
當 c 是一異質字串陣列時,deblank 將會對陣列 c 中的每一個元素作用。
Examples
A{1,1} = 'MATLAB ';
A{1,2} = 'SIMULINK ';
A{2,1} = 'Toolboxes ';
A{2,2} = 'The MathWorks ';
A =
'MATLAB ' 'SIMULINK '
'Toolboxes ' 'The MathWorks '
deblank(A)
ans =
'MATLAB' 'SIMULINK'
'Toolboxes' 'The MathWorks'
| deal | dec2base | ![]() |