Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Hi I\'m trying to calculate the theoretical time it would take my computer to do

ID: 3833824 • Letter: H

Question

Hi I'm trying to calculate the theoretical time it would take my computer to do a matrix product operation in MATLAB. I have code running this in MATLAB, that generates how long it's taking it to calculate this but obviously there are other things that affect the time due to background processes.

How would I calculate the theoretical time it should take my processor to do a simple product operation in MATLAB between two nxn matrices, given the average glfops of my processor is 28.1967. I'm trying to compare this theoretical value to my experimental value from the code.

I assume the amount of code I have compiled matters or no? If so I can paste the code in here.

Any help is appreciated will give a thumbs up.

Explanation / Answer

timeit measures time required to run function.
t = timeit(f) % f is the function

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote