Skip to content

Instantly share code, notes, and snippets.

@mick001
Created August 28, 2015 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mick001/f4e8c1e0154bff5f93bf to your computer and use it in GitHub Desktop.
Save mick001/f4e8c1e0154bff5f93bf to your computer and use it in GitHub Desktop.
Complex functions and flow around a cylinder part 3 (matlab). Full article available at: http://www.firsttimeprogrammer.blogspot.com/2015/07/complex-functions-and-flow-around.html
figure
subplot(1,3,1)
C1 = contour(x,y1,abs(z),linspace(-10,10,100)); title('Contour of abs(f)');
xlabel('x'); ylabel('y'); %clabel(C1);
subplot(1,3,2)
C2 = contour(x,y1,real(z),linspace(-10,10,100)); title('Contour of re(f)');
xlabel('x'); ylabel('y'); %clabel(C2);
subplot(1,3,3)
C3 = contour(x,y1,imag(z),linspace(-10,10,100)); title('Contour of Im(f)');
xlabel('x'); ylabel('y'); %clabel(C3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment