Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. >> n=1000;a=rand(n);b=rand(n);c=zeros(n);
  2. >> tinicial=clock; c = a*b; tfinal = clock; mflops = (2*n^3)/1000000;
  3. >> mflops/etime(tfinal,tinicial)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement