gusucode.com > MATLAB实现字符大小写转换 源程序 > MATLAB实现字符大小写转换 源程序/caps.m
function out=caps(in) out=lower(in); out(1)=upper(out(1)); empty_index=find(out==' '); first_index=empty_index+1; out(first_index)=upper(out(first_index)); end