read only range of values from csv
    4 ビュー (過去 30 日間)
  
       古いコメントを表示
    
i have a csv file with data in a coloumn ranging from 1.000 to 6.000 
is there a way i can read only the values ranging between 4.567 to 4.577 ?
your help is very much appreciated thanks 
0 件のコメント
回答 (1 件)
  KSSV
      
      
 2021 年 6 月 9 日
        You can read the entire data and then pick your required using indexing. 
data = csvread(myfile) ;   % assuming file has single column 
idx = data >= 4.567 & data <= 4.577 ;
iwant = data(idx) ; 
0 件のコメント
参考
カテゴリ
				Help Center および File Exchange で Low-Level File I/O についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

