Question

In Matlab

Prepare a script to plot the surface plot of the function Plot over the ranges -10 s x 3 10 and-20 sy 20. Note: The function,

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

solution

procrarm %matlab code 8plot the range x--10: .2:10 y -20:.2:20; read matrices x and y value (X, ] meshgrid (x,y) ; plot the s

//output

2000 1500 1000 500 20 10 10 - 10 -5 20 10

//copyable code

program

%matlab code

%plot the range

x=-10:.2:10;

y=-20:.2:20;

%read matrices x and y value

[X,Y] = meshgrid(x,y);

%plot the surface function

Z = X.^2-2*(X.*Y)+3*Y.^2;

figure

%surface plot

surface(X,Y,Z)

%view figure

view(3)

Add a comment
Know the answer?
Add Answer to:
In Matlab Prepare a script to plot the surface plot of the function Plot over the...
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