Extract or import two Specific values form Text file
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I am working on a problem in MATLAB, in which I need to import two specific values (highlighted) from a text file as shown in the figure 1.

And corresponding txt file is attached below.
2 Commenti
Risposta accettata
madhan ravi
il 24 Lug 2018
Try this:
fid = fopen('M7_soil_FN_1.txt','rt');
C = textscan(fid,'%f%f','HeaderLines',6);
fclose(fid);
C{1}
C{2}
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Data Import and Export in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!