フィルターのクリア

Load CSV file to matlab and avoiding word written in csv file for data analysis

1 回表示 (過去 30 日間)
Sinhara
Sinhara 2012 年 8 月 8 日
I have a .csv file which has some words and data in it. If I load the file with words, it does not work. i want to know how to avoid the rows of words in the file when i am loading it.
Thanks

回答 (3 件)

Laura Proctor
Laura Proctor 2012 年 8 月 8 日
編集済み: Laura Proctor 2012 年 8 月 8 日
You can load it using the textscan function. The link will explain more about this function.
If you tell me about the format of the CSV file (i.e. how many headerlines that you want to avoid, and then a sample row of data), I can tell you more about how to use the function.
  3 件のコメント
Sinhara
Sinhara 2012 年 8 月 8 日
I have about 20 .csv files which i have to use. can you tell me a method to use those files with textscan function
Khan
Khan 2012 年 9 月 25 日
"x = csvread('File Name',9,0,[9,0, 209,0]);" you can try this command it will load your data from row 9 till to 209 row of only first column ..

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


Kevin Claytor
Kevin Claytor 2012 年 8 月 8 日
importdata does a pretty good job of separating header from file information, have you tried that?

Reks
Reks 2013 年 8 月 5 日
Utilize next solution repair rtf document

カテゴリ

Help Center および File ExchangeLarge Files and Big Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by