Import data from CSV file by Import Tool or textscan
显示 更早的评论
I can import data from csv file by Import Tool(out type:string), and the tool could creat a script(textscan in it) to instead Import Tool. But, when I use Import Tool or script to import csv file, it lost blank line which in csv file. How to solve it? Thanks.
4 个评论
Image Analyst
2021-11-5
Why do you want a blank line in your matrix? You can't have that in a double matrix. You can't have one row be blank (all nulls). Explain why you think you need this.
KSSV
2021-11-5
Read about readtable to load csv file.
采纳的回答
更多回答(1 个)
Sulaymon Eshkabilov
2021-11-5
0 个投票
Use readmatrix() that would import all numerical data in a matrix form.
类别
在 帮助中心 和 File Exchange 中查找有关 Text Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!