Changeset 1330
- Timestamp:
- 07/16/09 10:01:08 (16 years ago)
- Location:
- issm/trunk/src/m/utils/Exp/readwrite
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/utils/Exp/readwrite/expwrite.m
r1135 r1330 32 32 fprintf(fid,'%i %f\n',[length(a(n).x) a(n).density]); 33 33 fprintf(fid,'%s\n','# X pos Y pos'); 34 35 for i=1:length(a(n).x), 36 fprintf(fid,'%f %f\n',[a(n).x(i) a(n).y(i)]); 37 end 38 fprintf(fid,'\n',''); 34 fprintf(fid,'%10.10f %10.10f\n',[a(n).x a(n).y]'); 35 fprintf(fid,'\n',''); 39 36 40 37 end -
issm/trunk/src/m/utils/Exp/readwrite/expwriteasvertices.m
r1 r1330 16 16 17 17 fid=fopen(filename,'w'); 18 for n=1:length(a.x), 19 20 fprintf(fid,'%s\n','## Name:'); 21 fprintf(fid,'%s\n','## Icon:0'); 22 fprintf(fid,'%s\n','# Points Count Value'); 23 fprintf(fid,'1 1.\n'); 24 fprintf(fid,'%s\n','# X pos Y pos'); 25 fprintf(fid,'%f %f\n\n',[a.x(n) a.y(n)]); 26 27 end 18 fprintf(fid,'%s\n','## Name:'); 19 fprintf(fid,'%s\n','## Icon:0'); 20 fprintf(fid,'%s\n','# Points Count Value'); 21 fprintf(fid,'1 1.\n'); 22 fprintf(fid,'%s\n','# X pos Y pos'); 23 fprintf(fid,'%10.10f %10.10f\n',[a.x a.y]'); 24 fprintf(fid,'\n',''); 28 25 fclose(fid);
Note:
See TracChangeset
for help on using the changeset viewer.