from
Conic Plotter
by creek
Plots conics given as implicit functions
|
| deg(a,b,c,d,e,f)
|
function deg(a,b,c,d,e,f)
clc
disp('Welcome! Type the coefficients of your conic; if f(x,y)=ax^2+bxy+cy^2+dx+ey+f');
a= input('a=');
b= input('b=');
c= input('c=');
d= input('d=');
e= input('e=');
f= input('f=');
clc
mat1 = [a b/2 d/2; b/2 c e/2;d/2 e/2 f];
if det(mat1)==0 %degenerate case condition
disp('Oops, Sorry, conic GUI will not work properly, wait for version2');
else
disp('Carry on! You can use all of my GUIs')
end
end
|
|
Contact us at files@mathworks.com