Filter löschen
Filter löschen

error in fopen when use dlmread

1 Ansicht (letzte 30 Tage)
Skydriver
Skydriver am 11 Okt. 2018
Kommentiert: Star Strider am 12 Okt. 2018
file1 = dlmread('Matched_TNG20100518CISI_N.txt','', 5, 0) fid = fopen(file1, 'r') Axcel1=fscanf(file1,'%g %g %g %g %g\n',[4,Inf])';
Error using fopen File identifier must be an integer-valued scalar of type double.
Any one can help me?

Antworten (1)

Star Strider
Star Strider am 11 Okt. 2018
Simply use the one line:
file1 = dlmread('Matched_TNG20100518CISI_N.txt','', 5, 0);
Then, check to see what ‘file1’ contains. It should be a matrix of numeric data that you can access directly.
  4 Kommentare
Skydriver
Skydriver am 12 Okt. 2018
Okay, thx, It's done
Star Strider
Star Strider am 12 Okt. 2018
My pleasure.
If my Answer helped you solve your problem, please Accept it!

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Data Import and Export finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by