blanks
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
how would i write a code to print each line of the string array G omitting any trailing blanks?
0 Commenti
Risposte (2)
Wayne King
il 23 Mag 2012
s = 'Have you tried deblank? '
s1 = deblank(s);
length(s)
length(s1)
0 Commenti
Meg Noah
il 7 Ago 2025
G = repmat(strcat(" ",datestr(now,'yyyy/mmm/dd HH:MM:SS')," "),10,1)
fprintf(1,'%s\n',strtrim(G));
0 Commenti
Vedere anche
Categorie
Scopri di più su Characters and Strings in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!