summaryrefslogtreecommitdiff
path: root/xmds2/Nlevels_no_dopler_with_z_4wm/map2dat.m
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2012-01-11 13:26:36 -0500
committerEugeniy Mikhailov <evgmik@gmail.com>2012-01-11 13:26:36 -0500
commit12904eaa99bad389f62410e4cb1394b6636f1994 (patch)
tree894d6927be66bd78d973ea0c02a683f7d03ab282 /xmds2/Nlevels_no_dopler_with_z_4wm/map2dat.m
parent3507456719560ea6729d3490d61a56bfb52a9b45 (diff)
downloadNresonances-12904eaa99bad389f62410e4cb1394b6636f1994.tar.gz
Nresonances-12904eaa99bad389f62410e4cb1394b6636f1994.zip
map2dat.m: added to main matlab lib and everything else linked to it
Diffstat (limited to 'xmds2/Nlevels_no_dopler_with_z_4wm/map2dat.m')
l---------[-rw-r--r--]xmds2/Nlevels_no_dopler_with_z_4wm/map2dat.m34
1 files changed, 1 insertions, 33 deletions
diff --git a/xmds2/Nlevels_no_dopler_with_z_4wm/map2dat.m b/xmds2/Nlevels_no_dopler_with_z_4wm/map2dat.m
index 969b6dc..90fc33d 100644..120000
--- a/xmds2/Nlevels_no_dopler_with_z_4wm/map2dat.m
+++ b/xmds2/Nlevels_no_dopler_with_z_4wm/map2dat.m
@@ -1,33 +1 @@
-function map2dat(outfile, x,y,z, xskip, yskip)
-% saves 3D data in suitable way to be drawn by gnuplot
-% x,y - vectors of x,y values
-% z map of z values as used by Octave/Matlab
-% xskip, yskip - skip paprameters
-% only every, xskip, yskip point will be written
-
-
-
-Nx=length(x);
-Ny=length(y);
-Nxs=Nx/xskip;
-Nys=Ny/yskip;
-points=zeros(1,3*Nxs*Nys);
-%points=[];
-tic;
-for i=1:Nxs
- for k=1:Nys
- %points=[points x(i*xskip) y(k*yskip) z(k*yskip,i*xskip)];
- points((i-1)*(Nys-1)*3+3*(k-1)+1) = x(i*xskip);
- points((i-1)*(Nys-1)*3+3*(k-1)+2) = y(k*yskip);
- points((i-1)*(Nys-1)*3+3*(k-1)+3) = z(k*yskip,i*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;
+../../matlab_helper_files/map2dat.m \ No newline at end of file