Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fitting values with polyfit in Matlab

I have made some measurements with tic-toc of X=qr(A) and [Q,R]=qr(A), where A is a random matrix, with dimensions nxn (n=[100:100:1000]).

Now I want to create a function that describes the time measurements i have made. I want the polynomial to be cubic and i want to use the polyfit function for creating it. Though, i can't understand what arguments to pass to polyfit. The last argument will be 3 (cubic), but what should the other two arguments be?

like image 493
George Tseres Avatar asked Jan 20 '26 00:01

George Tseres


1 Answers

n is the first argument, and the time is the second. Both should be with the same length

like image 146
Andrey Rubshtein Avatar answered Jan 21 '26 21:01

Andrey Rubshtein



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!