- #1
Nusc
- 760
- 2
Homework Statement
I need to find out how fast it takes MATLAB to invert an nxn matrix and:
plot t(n) vs n
plot log(time) vs. log(n)
Homework Equations
The Attempt at a Solution
for n = 1:10
A=rand(n);
tic
b=inv(A);
t(n)=toc;
end
plot(t(n),n);
Nothing shows up, what am I missing or doing incorrectly?