matlab如何判断字符串为空


可以用 length(string) 函数,结果为0时,即为空
或者
if( s=='' )
    t=0 ;
else
    t=-1 ;
end

原文地址:https://www.cnblogs.com/yibeimingyue/p/13225654.html