Is Computational time proportional to the matrix size?
Show older comments
Now I'm trying to measure calculation time envolving getting euclidean distance between to vectors.
Say:
D = A - B;
U = norm(D);
where A and B are 1-by-N. As N changes from 2 to 19, I expect that the computational time also increases. However, the time is not exactly proportional to N.
Yes, of course, it's very fast and all time values are in the similar range. But, sometimes time with N = 2 is higher than N = 7, 8, 9,... something like that.
Is it because I am running other programs on my PC? or, MATLAB is fast, but jitters in computational time?
Accepted Answer
More Answers (0)
Categories
Find more on Numeric Types in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!