Question
Using Matlab: Let f be the function given by f(x) ={ x + y: x >/ 0,y >/ 0 x + y^2: x >/ 0,y
Using Matlab:
Let f be the function given by f(x) ={ x + y: x >/ 0,y >/ 0
x + y^2: x >/ 0,y
x^2 + y: x / 0
x^2 + y^2: x
Notice that f is a surface in R3. Using only logicals and normal vector algebra, write f as an anonymous function of two variables x and y. Graph using meshgrid and one of the surf commands (surf by itself should work). Though f is de?ned for all real numbers, your x coordinate values should be 40 equally spaces points between ?8 and 8 and your y coordinate values should be 50 equally spaced points between ?10 and 10. Make sure you give you graph a title and appropriate labels.
2. Let f be the function given by Notice that f is a surface in R. Using only logicals and normal vector algebra, write fas an anonymous function of two variables r and y. Graph using meshgrid and one of the surf commands (surf by itself should work). Though is delined for a real numbers, your r coordinate valucs should be 40 equally spaces points between-8 and 8 and your y coordinate values should be 50 equally spaced points between -10 and 10. Make sure you give you graph a title and appropriate labelsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started