Skip to content

Instantly share code, notes, and snippets.

@shrijitsingh99
Created February 15, 2019 07:53
Show Gist options
  • Save shrijitsingh99/6945cbf98efa4389539db4d346885b19 to your computer and use it in GitHub Desktop.
Save shrijitsingh99/6945cbf98efa4389539db4d346885b19 to your computer and use it in GitHub Desktop.
a=-1.4:0.02:1.4;
[X,Y,Z] = meshgrid(a);
F =((X.^2)+(9/4).*(Y.^2)+(Z.^2)-1).^3-(X.^2).*(Z.^3)-(9/80).*(Y.^2).*(Z.^3);
patch(isosurface(X,Y,Z,F,0),'EdgeColor','r')
axis equal
view([-43 13]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment