• Remix
  • Share
  • New Entry

on 14 Oct 2021
  • 5
  • 52
  • 3
  • 0
  • 279
f=@(x,y,z)x^2+(y^2+z^2)/(.7-.1*x)^2-1;
figure(Color='c')
p=fimplicit(@(x,y)f(x,y,0));
Warning: Function behaves unexpectedly on array inputs. To improve performance, properly vectorize your function to return an output with the same size and shape as the input arguments.
h=@(x)fillmissing(x,'linear');
X=h(p.XData);
Y=h(p.YData);
fill(X,Y,'r');
hold on
fill3(X,X-X,Y,'r');
fimplicit3(f,FaceC='r',EdgeC='none')
Warning: Function behaves unexpectedly on array inputs. To improve performance, properly vectorize your function to return an output with the same size and shape as the input arguments.
axis equal off
view(-145,15)
light(Pos=[1 1 1]);
material dull
xlim([-.9 1]);
Remix Tree
Load full remix tree