meaning in matlab help example of textread " Read Using Literal to Ignore Matching Characters"
Show older comments
I don't understand a script on matlab help file of 'textread', example 4, about data = textread('data.csv', '', 'delimiter', ',','emptyvalue', NaN); what is the scripts to remove the comma ',' from the original data, and I have seen a scripts that ignore the head text by using 'headerlines', 15,how does this work?
the original example is For files with empty cells, use the emptyvalue parameter. Suppose the file data.csv contains:1,2,3,4,,6 7,8,9,,11,12Read the file using NaN to fill any empty cells:data = textread('data.csv', '', 'delimiter', ',', ... 'emptyvalue', NaN);
Accepted Answer
More Answers (0)
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!