MATLAB函式matlab函式strtrim用於裁切字元串的開頭和尾部的空格,制表,回車符。用法:strtrim(str)示例:a=' Hello World! 'a =Hello World!b=strtrim(a)b =Hello World!