diff options
Diffstat (limited to 'examples/speed.m')
-rw-r--r-- | examples/speed.m | 7 |
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 | |||
12 | t0=time(); | 12 | t0=time(); |
13 | x = linspace(0,1,1E5); | 13 | x = linspace(0,1,1E5); |
14 | ac = eye(3); | 14 | ac = eye(3); |
15 | for a=x | 15 | for a = x |
16 | ac = rot(a)*ac; | 16 | ac = ac*rot(a); |
17 | end | 17 | end |
18 | 18 | ||
19 | format long | ||
19 | disp(ac); | 20 | disp(ac); |
20 | disp(time()-t0) | 21 | printf("%.2f seconds\n",time()-t0) |