How do i plot this with different domain other than unit disk?
조회 수: 4 (최근 30일)
이전 댓글 표시
syms z r theta n m
X(z)=atan(z)
Y(z)=z/(z^2 + 1)
Z(z)=sym(1/2) - 1/(2*(z^2 + 1))
X(r,theta)=subs(X,z,r*exp(1i*theta))
Y(r,theta)=subs(Y,z,r*exp(1i*theta))
Z(r,theta)=subs(Z,z,r*exp(1i*theta))
figure
fsurf(real(X),imag(Y),2*imag(Z),[0 0.999 0 2*pi],'MeshDensity',10,'FaceAlpha',.75)
colormap jet
shading interp
%Adjust x, y and z axis limits according to the reference image
axis([-1.3 1.3 -1.3 1.3 -1.3 1.3])
set(gcf,'renderer','Painters')
I have this plot for (X(z),Y(z),Z(z)) where z belongs to the unit disk, i.e, . But i want the plot for the domain , what changes should i do in this code? Also, in the current plot, please notice the change in colour while increasing meshdensity and with only , but if i increase it too much, the plot becomes partly black and it doesn't look nice. what should i do?
댓글 수: 2
Torsten
2023년 9월 13일
I'm not sure about the function f(z) you want to plot for Re(z) < 1 (or its real or imaginary part).
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!