Last change
on this file since 177 was
37,
checked in by (none), 15 years ago
|
Added original make3d
|
-
Property svn:executable set to
*
|
File size:
546 bytes
|
Rev | Line | |
---|
[37] | 1 | tim = [];
|
---|
| 2 | for k = 1:6
|
---|
| 3 | x = rand(1,1024*k/2);
|
---|
| 4 | %x = 1:(1024*k/4);
|
---|
| 5 | niter = floor(12000/k);
|
---|
| 6 |
|
---|
| 7 | %tic; for i = 1:niter ismembc(b,a); end; tim(k,1) = toc;
|
---|
| 8 | tic; for i = 1:niter max(x); end; tim(k,1) = toc;
|
---|
| 9 | tic; for i = 1:niter min(x); end; tim(k,2) = toc;
|
---|
| 10 | tic; for i = 1:niter all(x); end; tim(k,3) = toc;
|
---|
| 11 | tic; for i = 1:niter any(x); end; tim(k,4) = toc;
|
---|
| 12 | tic; for i = 1:niter x+x; end; tim(k,5) = toc;
|
---|
| 13 | end
|
---|
| 14 | figure(1),clf
|
---|
| 15 | plot(tim)
|
---|
| 16 | xlabel('trial')
|
---|
| 17 | ylabel('time (sec)')
|
---|
| 18 | legend('max','min','all','any','plus');
|
---|
| 19 | %tim(end,1)
|
---|
Note: See
TracBrowser
for help on using the repository browser.