フィルターのクリア

Import data from CSV file by Import Tool or textscan

1 回表示 (過去 30 日間)
kei hin
kei hin 2021 年 11 月 5 日
回答済み: kei hin 2021 年 11 月 5 日
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 件のコメント
KSSV
KSSV 2021 年 11 月 5 日
Read about readtable to load csv file.
kei hin
kei hin 2021 年 11 月 5 日
編集済み: kei hin 2021 年 11 月 5 日
readtable lost blank line too,and variable name in csv file will be changed. It is boring.

サインインしてコメントする。

採用された回答

kei hin
kei hin 2021 年 11 月 5 日
In the script which Import Tool created, change
delimiter = ',';
to
delimiter = {',','\r'};
It seems to have been solved.

その他の回答 (1 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021 年 11 月 5 日
Use readmatrix() that would import all numerical data in a matrix form.
  1 件のコメント
kei hin
kei hin 2021 年 11 月 5 日
There is no readmatrix() in R2017b.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeText Files についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by