summaryrefslogtreecommitdiff
path: root/examples/speed.m
diff options
context:
space:
mode:
Diffstat (limited to 'examples/speed.m')
-rw-r--r--examples/speed.m7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/speed.m b/examples/speed.m
index 10dbf78..2f41665 100644
--- a/examples/speed.m
+++ b/examples/speed.m
@@ -12,9 +12,10 @@ end
12t0=time(); 12t0=time();
13x = linspace(0,1,1E5); 13x = linspace(0,1,1E5);
14ac = eye(3); 14ac = eye(3);
15for a=x 15for a = x
16 ac = rot(a)*ac; 16 ac = ac*rot(a);
17end 17end
18 18
19format long
19disp(ac); 20disp(ac);
20disp(time()-t0) 21printf("%.2f seconds\n",time()-t0)