这是官方的帮助:For files with empty cells, use the emptyvalue parameter. Suppose the file data.csv contains:1,2,3,4,,67,8,9,,11,12Read the file using NaN to fill any empty cells:data = textread('data.csv', '', 'delimiter', ',', ...
'emptyvalue', NaN);也就是说,不仅可以补零,可以补任何数,改变('emptyvalue', NaN)这一项的值就行。还有是你...
|