Input files editing format
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
RAKESH KUMAR TOTA
am 18 Jan. 2021
Kommentiert: RAKESH KUMAR TOTA
am 18 Jan. 2021
Hi, Good morning
I have an input file input.txt, i need to save the format in different two files node.txt and el.txt in the format attached files. Any help would be appreciated . Thank you inadvance.
2 Kommentare
Akzeptierte Antwort
Walter Roberson
am 18 Jan. 2021
fid = fopen('input.txt', 'r');
nodedata = cell2mat( textscan(fid, '%*f,%f,%f', 'CommentStyle', {'*Heading', '*Node'}) );
eldata = cell2mat( textscan(fid, '%*f,%f,%f,%f,%f', 'HeaderLines', 1) );
fclose(fid)
8 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Import and Export finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!