summaryrefslogtreecommitdiff
path: root/sharedfiles/reverse.m
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2014-05-13 15:35:26 -0400
committerEugeniy Mikhailov <evgmik@gmail.com>2014-05-13 15:58:56 -0400
commitd1b62466d81b164656588ac1c55acff15ee9ea43 (patch)
treecce78f90b0768361c4a268b946848842e1e47456 /sharedfiles/reverse.m
downloadoptics_toolkit-d1b62466d81b164656588ac1c55acff15ee9ea43.tar.gz
optics_toolkit-d1b62466d81b164656588ac1c55acff15ee9ea43.zip
initial
The optics_toolkit code taken from http://mercury.pr.erau.edu/~greta9a1/downloads/index.html the older version is also available at mathwork web site http://www.mathworks.com/matlabcentral/fileexchange/15459-basic-paraxial-optics-toolkit
Diffstat (limited to 'sharedfiles/reverse.m')
-rw-r--r--sharedfiles/reverse.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/sharedfiles/reverse.m b/sharedfiles/reverse.m
new file mode 100644
index 0000000..010529b
--- /dev/null
+++ b/sharedfiles/reverse.m
@@ -0,0 +1,5 @@
+% Reverses the positions of the elements of a vector
+
+function r=reverse(v);
+
+r=v([length(v):-1:1]); \ No newline at end of file