Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fileID=fopen('first3.txt','w');
- fid=fopen('a.txt');
- tline=fgets(fid);
- tline=fgets(fid);
- tline=fgets(fid);
- tline=fgets(fid);
- grp = textscan(tline,'%d %d %d %d %d %d %d %d %d %d %s');
- tline=fgets(fid);
- n1=textscan(tline,'%.4f %.4f %.4f %c %d %d %d %d %d %d %d %d %d %d %d %d');
- fprintf(fileID,' %f %f 0.0000 %c 0 0 0 0 0 0 0 0 0 0 0 0n',double(n1{1}),...
- double(n1{2}),char(n1{4}),double(n1{5}),double(n1{6}),double(n1{7}),...
- double(n1{8}),double(n1{9}),double(n1{10}),double(n1{11}),double(n1{12}),...
- double(n1{13}),double(n1{13}),double(n1{15}),double(n1{16}));
- fclose(fileID);
- fclose(fid);
- aaa
- bbb
- ccc
- 4 3 0 0 0 0 0 0 0 0 ABC
- 0.0000 -0.1976 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
- 0.000000 -0.197600 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
- 0.000000 0.000000 0.0000 NUL 0 0 0 0 0 0 0 0 0 0 0 0
- 0.000000 0.000000 0.0000 NUL 0 0 0 0 0 0 0 0 0 0 0 0
- 0.000000 0.000000 0.0000 NUL 0 0 0 0 0 0 0 0 0 0 0 0
- 0.000000 0.000000 0.0000 NUL 0 0 0 0 0 0 0 0 0 0 0 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement