0

I have the following code.

syms x y; % line 1

%solve them for the parabola equation
 A  = [ x^2 x y 1 ;x0^2 x0 y0 1; x1^2 x1 y1 1; x2^2 x2 y2 1];  %line 2
 S = solve(det(A),y); %line 3

(x1,y1), (x2,y2), (x3,y3) are integer coordinates.

The line 2 takes 0.48 seconds for 73 calls and the line 3 takes 1.5 seconds for 73 calls.

In line 2 I am only defining a matrix. Why is time so much in line 1?

Also any suggestions on decreasing the time?

Thanks

t0mkaka
  • 1,843
  • 2
  • 17
  • 21

0 Answers0