Question

Plot the surface generated by z = 3x2 + 2y2 - 10 in the intervals -4...

Plot the surface generated by z = 3x2 + 2y2 - 10 in the intervals -4 ≤ x ≤ 4 and -3 ≤ y ≤ 3 using mesh or surf commands and chose an increment of 0.1. Label the x-, y-, and z-axes as “X”, “Y”, and “Z.” Include a title of the plot (In_Class Assignment – Problem 1). Save the plot as Problem 1. Hint: Use semicolons to prevent Matlab from showing the large matrices or vectors.

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

MatLab program

clear
clc
% x and y using mesh grid command
[x,y]=meshgrid(-4:0.1:4,-3:0.1:3);
% z as given function of x,y
z=3*x.^2+2*y.^2-10;
% ploting the surface
surf(x,y,z)
xlabel('X')
ylabel('Y')
zlabel('Z')
title('In Class Assignment - Problem 1')

Screenshot

Save the above program and execute it.

Result

I hope this will help you.

Add a comment
Know the answer?
Add Answer to:
Plot the surface generated by z = 3x2 + 2y2 - 10 in the intervals -4...
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
  • Create a 3-D mesh plot of the function Z 1 / 1 + 0.5 x + y-1 ). Let both x and y vary from-4 to +...

    HELP WITH MATLAB PRGRAM! Please only use matlab to slove this program! Thank you! Create a 3-D mesh plot of the function Z 1 / 1 + 0.5 x + y-1 ). Let both x and y vary from-4 to +4. La e and title the plot "Jack and Jill'sHill" (be sure the single quote in the word Jill's is in the title) ex y, anď z axes T stance East n · Distance North n andĺ Height (m) Create...

  • the code in the photo for this I.V.P dy/dx= x+y. y(0)=1 i need the two in the photo thank you New folder Bookmark...

    the code in the photo for this I.V.P dy/dx= x+y. y(0)=1 i need the two in the photo thank you New folder Bookmarks G Google dy/dx x+y, y(0)=1 2 h Exact Solution 1.8 Approximate Solution Mesh Points 1.6 -Direction Fied 1.4 1.2 1 0.8 04 0.2 0.3 0.1 0 X CAUsersleskandara\Desktop\New folder emo.m EDITOR PUBLISH VEW Run Section FILE NAVIGATE EDIT Breakpoints Run Run and FL Advance Run and Advance Time BREAKPOINTS RUN 1 - clear all 2 clc 3-...

  • Problem 5 (programming): Create a MATLAB function named lagrange interp.m to perform interpolation using Lagrange polynomials....

    Problem 5 (programming): Create a MATLAB function named lagrange interp.m to perform interpolation using Lagrange polynomials. Download the template for function lagrange interp.m. The tem Plate is in homework 4 folder utl TritonED·TIue function lakes in the data al nodex.xi and yi, as well as the target x value. The function returns the interpolated value y. Here, xi and yi are vectors while x and y are scalars. You are not required to follow the template; you can create the...

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