a2 = str2double(str);. % a2=5. 2.當string為非數字字元時:該情況下,兩個函式是不一樣的。 str = "a";. a1 = str2num(str);.
確定! 回上一頁