how to read .data format data using matlab code??
Mostra commenti meno recenti
for example the file contains 4,43,1,1,?,1 this type format.i attached data file.please help how to read the data file
Risposte (1)
Str = fileread(FileName);
Str = strrep(Str, '?', 'NaN'); % EDITED, "Str, " inserted
Str = strrep(Str, char(10), ',');
Value = sscanf(Str, '%f,');
Value = reshape(Value, 5, []).';
2 Commenti
Gayathri varu
il 4 Mag 2016
Jan
il 6 Mag 2016
Yes, there have been some typos. They are fixed now.
Categorie
Scopri di più su Resizing and Reshaping Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!