Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For each of the problems in this lab assignment, write a separate MATLAB m-file. The name of each m-file must be exactly as specified in

image text in transcribed

For each of the problems in this lab assignment, write a separate MATLAB m-file. The name of each m-file must be exactly as specified in the corresponding problem statement. Submit your m files by uploading to Blackboard before the due date. A p-file (an encrypted script file) for problems 1 and 2 are available on the Lab page of the course website. You can download this file and run it from the command line to see how your code should behave. Your plots should exactly match the plots created by the p-files. Filename: MAE1090_Lab9_1.m Write an m-file to evaluate the following function of two variables z = 10 sin (x + sin(y)) over the range of -10 lessthanorequalto x lessthanorequalto 10 and -10 lessthanorequalto y lessthanorequalto 10 using 100 points in each direction. Use meshgrid.m to generate x and y matrices, with which you can calculate the matrix z with a single MATLAB command. Plot the resulting z matrix as a surface plot and then as a contour plot. For the surface plot, use a viewing angle of AZ=19 and EL=70. Be sure to include a title and axis labels. Filename: MAE1090_Lab 9_2.m Write an m-file to evaluate the following function of two variables z = sin(x middot y) over the range of 0 lessthanorequalto x lessthanorequalto 3 and 0 lessthanorequalto y lessthanorequalto 3 using 100 points in each direction. Use meshgrid.m to generate x and y matrices, with which you can calculate the matrix z with a single MATLAB command. Plot the resulting z matrix as a surface plot and then as a contour plot. For the surface plot, use a viewing angle of AZ=42 and EL=72 and change the shading property to interpolate. Be sure to include a title and axis labels. For each of the problems in this lab assignment, write a separate MATLAB m-file. The name of each m-file must be exactly as specified in the corresponding problem statement. Submit your m files by uploading to Blackboard before the due date. A p-file (an encrypted script file) for problems 1 and 2 are available on the Lab page of the course website. You can download this file and run it from the command line to see how your code should behave. Your plots should exactly match the plots created by the p-files. Filename: MAE1090_Lab9_1.m Write an m-file to evaluate the following function of two variables z = 10 sin (x + sin(y)) over the range of -10 lessthanorequalto x lessthanorequalto 10 and -10 lessthanorequalto y lessthanorequalto 10 using 100 points in each direction. Use meshgrid.m to generate x and y matrices, with which you can calculate the matrix z with a single MATLAB command. Plot the resulting z matrix as a surface plot and then as a contour plot. For the surface plot, use a viewing angle of AZ=19 and EL=70. Be sure to include a title and axis labels. Filename: MAE1090_Lab 9_2.m Write an m-file to evaluate the following function of two variables z = sin(x middot y) over the range of 0 lessthanorequalto x lessthanorequalto 3 and 0 lessthanorequalto y lessthanorequalto 3 using 100 points in each direction. Use meshgrid.m to generate x and y matrices, with which you can calculate the matrix z with a single MATLAB command. Plot the resulting z matrix as a surface plot and then as a contour plot. For the surface plot, use a viewing angle of AZ=42 and EL=72 and change the shading property to interpolate. Be sure to include a title and axis labels

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

More Books

Students also viewed these Databases questions

Question

What is topology? Explain with examples

Answered: 1 week ago