Meeting 03 MATLAB 3D Graphics - Ijaz.pptx

# Meeting 03 MATLAB 3D Graphics - Ijaz.pptx - Texas A&M...

• 21

This preview shows pages 1–9. Sign up to view the full content.

Texas A&M University ENGR 112 – Spring 2018 Foundations of Engineering II Meeting 03 MATLAB Graphics

This preview has intentionally blurred sections. Sign up to view the full version.

RAT – Meeting 03 Log on to eCampus. Go to Continual Assessment >> Readiness Assessment Tests Open ‘RAT – Meeting 03’. This is an individual test. Password is “ teamproject ”, with all lowercase letters. Answer all questions and submit.
Agenda RAT Introduction to Engineering Innovation Center by Mr. James Wilson Announcements Review from ENGR 111 3D Plots In-class Activities CFU – will be available at 9:30 A.M.

This preview has intentionally blurred sections. Sign up to view the full version.

Announcements Draft description of team project is posted Form 6 teams Team size shall be 8 students, except for Teams 3 and 6 which will have 7 students each. Enroll yourself to a team on eCampus First Team Project Report due on February 2
Learning Objectives Review from ENGR 111 Export/import data to/from .xls or .mat files for plotting. Use MATLAB to make a simple 2-D plot. Add axis labels, a title, gridlines, and a legend to a plot in MATLAB. Create multiple plots on one set of axes in MATLAB with a proper legend. Use the subplot command to generate multiple plots in a single figure. New for ENGR 112 Make 3D line plots using the plot3 function. Make 3D surface plots using the mesh , surf and other functions. Use the meshgrid function to make correct input matrices for the 3D plotting functions. Change the viewing angle and location of a plot using the view

This preview has intentionally blurred sections. Sign up to view the full version.

Array Arithmetic Review Create arrays to use as values of the independent variable: x = 0:200; theta = 0:pi/10:2*pi; y = linspace(0,5,50); z = logspace(0,5,25); Use array arithmetic to create values of the dependent variable(s): u = x.^2 – sin(x); v = 2*theta.^3 .* sin(theta); w = exp(y)./(3*y);
Multiple Plots Method 1: Using the hold command figure(1) theta=0:pi/100:2*pi; y=cos(theta); z=sin(theta); plot(theta,y,’b’) hold on plot(theta,z,’r’) hold off xlabel(‘\theta’) ylabel(‘y and z’) title(‘Plot of sin and cos’) 0 1 2 3 4 5 6 7 -1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 Plot of sin and cos y and z

This preview has intentionally blurred sections. Sign up to view the full version.

Multiple Plots
This is the end of the preview. Sign up to access the rest of the document.
• Spring '08
• V
• It, ecampus, plots

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern