i have to read only these three value (marked in the screenshot) from the file.
How to read Value from .txt
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Arun Kumar Singh
el 15 de Jun. de 2020
Comentada: Arun Kumar Singh
el 15 de Jun. de 2020

6 comentarios
Respuesta aceptada
Walter Roberson
el 15 de Jun. de 2020
filename = 'File.txt';
fid = fopen(filename, 'rt');
GAL = cell2mat(textscan(fid, '%*s%f%f%f', 1, 'headerlines', 2, 'collectoutput', true));
fclose(fid);
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Import and Export en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!