fscanf problem with reading txt data.
Mostrar comentarios más antiguos
fid = fopen('current.txt') %Open source file "current.txt"
NumSV = fscanf(fid, '%d') %Number of Satellites (PRN)
name = fgetl(fid)
[data, count] = fscanf(fid,'%f')
fclose(fid)
%I need to extract related information from current.txt file with using fscanf but it creates empty matrix like,
NumSV =
[]
2 comentarios
per isakson
el 16 de Mzo. de 2015
- "with using fscanf"   Why fscan?
- What exactly do you want to read from the file?
sermet
el 16 de Mzo. de 2015
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!