How can i read exact value (as it is) from csv file and separate data using empty row? ver.16b

4 ビュー (過去 30 日間)
as
as 2020 年 5 月 26 日
回答済み: Rik 2020 年 5 月 26 日
  1. Iam working on csv file in which i have to seperate data horizontaly when there's an empty row.
when i use readtable
data = readtable('Lateral_SWA_offset.csv','TreatAsEmpty',{'','NA'});
it ignore empty rows and also roundoff numerical values.
2. how can i read whole file as string and then perform my operation on that so that all value will remain as it is.

採用された回答

Rik
Rik 2020 年 5 月 26 日
The readfile function you can find here will read a file to a cell array, one line per cell. It will preserve blank lines and leading or trailing whitespace.

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by