MATLAB: Input files editing format abaqusinput text filesMATLAB 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. Best Answer 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) Related SolutionsMATLAB: How to read a text file and store its data inside a matrix clc; clear all ;fid = fopen ('40_8deg_HL_Both.txt', 'r');data = textscan(fid, '%s %s %f %f %f %f %f %f %f %s', 'HeaderLines', 9);fclose (fid);A = [data{3:9}] MATLAB: Cannot Read data from text file FileID = fopen('data.txt','r');C = textscan(FileID,'%s %f %f','HeaderLines',1,'Delimiter',',');fclose(FileID);C{1}C{2}C{3} Related QuestionTextscanning and exporting several text filesTexscan multiple variablesHow to display comments in a .dat file
Best Answer