blanks

2 次查看(过去 30 天)
lowcalorie
lowcalorie 2012-5-23
how would i write a code to print each line of the string array G omitting any trailing blanks?

回答(1 个)

Wayne King
Wayne King 2012-5-23
s = 'Have you tried deblank? '
s1 = deblank(s);
length(s)
length(s1)

类别

Help CenterFile Exchange 中查找有关 Characters and Strings 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by