Question

Filename: MAE1090_HW9_2.m Write an m-file to evaluate the following complex function ?? = ?? ??+???? for...

Filename: MAE1090_HW9_2.m Write an m-file to evaluate the following complex function ?? = ?? ??+???? for the interval ?1 ? ?? ? 1 and ?2?? ? ?? ? 2??. Use 50 points in both the ?? and ?? direction. Create a mesh, surface, and contour plot of the function. In each case, plot the real part of ?? versus ?? and ??. Add appropriate axis labels and titles.

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

Code:

pi=180;

x = -1:0.0408:1; %0.0408 increment generates 50points between -1 and 1

y = -2*pi : 14.69 :2*pi;

[X,Y]= meshgrid(x,y); %meshgrid generates array of scalar vectors

z = exp(X+i*Y); %compute z

mesh(X,Y,real(z)) %plot mesh plot of real part of z

xlabel('x-axis')

ylabel('y-axis')

title('mesh plot') %gives graph title

surf(X,Y,real(z)) %plot surface plot

xlabel('x-axis')

ylabel('y-axis')

title('surface plot')

contour(X,Y,real(z)) %draw contour plot

xlabel('x-axis')

ylabel('y-axis')

title('contour plot')
output

mesh plot 0.5 0 y-axis 0.5 x-axis-2 -3 Ati 30 201 y-axis 0.5 -30 X-axiscontour plot 300 200- 100 100- 200- 0) 1 -0.8 0.6 -0. 0.2 0 0.2 0.4 0.6 0.81 X-axis

Add a comment
Know the answer?
Add Answer to:
Filename: MAE1090_HW9_2.m Write an m-file to evaluate the following complex function ?? = ?? ??+???? 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