Question

Create a surface plot, contour plot, and mesh plot of the function z = e^(a+jb) for...

Create a surface plot, contour plot, and mesh plot of the function z = e^(a+jb) for the interval −1 ≤ a ≤ 1 and −2π ≤ b ≤ 2π. Plot the real part of z versus a and b for each of these plots.

0 0
Add a comment Improve this question Transcribed image text
Answer #1
Matlab Code

clc
close all

% generating a and b
a = linspace(-1, 1, 50);
b = linspace(-2*pi, 2*pi, 50);
% creating the A and B meshgrid points
[A, B] = meshgrid(a, b);

% calculating Z
Z = exp(A + j*B);
% extracting the real part of Z
real_Z = real(Z);

% surface plot
figure
surf(A, B, real_Z)
title('Surface Plot of Z = Real(exp(a+jb))')
xlabel('X')
ylabel('Y')
zlabel('Z')

% contour plot
figure
contour(A, B, real_Z)
title('Contour Plot of Z = Real(exp(a+jb))')
xlabel('X')
ylabel('Y')
zlabel('Z')

% mesh plot
figure
mesh(A, B, real_Z)
title('Mesh Plot of Z = Real(exp(a+jb))')
xlabel('X')
ylabel('Y')
zlabel('Z')

OUTPUT

Add a comment
Know the answer?
Add Answer to:
Create a surface plot, contour plot, and mesh plot of the function z = e^(a+jb) for...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT