summaryrefslogtreecommitdiff
path: root/matlab_helper_files
diff options
context:
space:
mode:
Diffstat (limited to 'matlab_helper_files')
-rw-r--r--matlab_helper_files/map2dat.m21
1 files changed, 10 insertions, 11 deletions
diff --git a/matlab_helper_files/map2dat.m b/matlab_helper_files/map2dat.m
index 4f4ca52..853ddd8 100644
--- a/matlab_helper_files/map2dat.m
+++ b/matlab_helper_files/map2dat.m
@@ -12,8 +12,8 @@ Ny=length(y);
Nxs=ceil(Nx/xskip);
Nys=ceil(Ny/yskip);
points=zeros(1,3*Nxs*Nys);
-%points=[];
-tic;
+
+%tic;
for i=1:Nxs
for k=1:Nys
%points=[points x(i*xskip) y(k*yskip) z(k*yskip,i*xskip)];
@@ -22,12 +22,11 @@ for i=1:Nxs
points((i-1)*(Nys)*3+3*(k-1)+3) = z(1+(k-1)*yskip,1+(i-1)*xskip);
end
end
-disp('=== points formation complete ===');
-toc
-tic;
-%points
-fd = fopen(outfile, "wt");
-fprintf (fd, "%g %g %g\n", points);
-fclose(fd);
-disp('=== points saving complete ===');
-toc;
+%disp('=== points formation complete ===');
+%toc
+%tic;
+%fd = fopen(outfile, "wt");
+%fprintf (fd, "%g %g %g\n", points);
+%fclose(fd);
+%disp('=== points saving complete ===');
+%toc;