hw04_engr13200_s11

hw04_engr13200_s11 - ENGR 13200 Ideas to Innovations Part...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
ENGR 13200 Ideas to Innovations Part II Spring 2011 HOMEWORK #4 Due: Class 4b To be submitted in Class 4B: Individually: 1. Hardcopy printout of your function m-files, fxy4C_yourlogin.m and fxy4F_yourlogin.m . 2. Hardcopy printout of your function m-file, Class3b_Activity5.m . 3. Hand written answers to problem 3. 4. Hardcopy printout of your function m-file, asin_yourlogin.m . 5. Flowchart and hardcopy printout of your function m-file, phases_yourlogin. m. Team: 1. Hardcopy printout of your Team Flyer. 2. Hardcopy printout of your Code of Cooperation signed by each team member. To be submitted electronically before Class 4B: Individually: 1. Your function m-files, fxy4C_yourlogin.m and fxy4F_yourlogin.m . 2. Your function m-file, Class3b_Activity5.m . 3. Your function m-file, asin_yourlogin.m . 4. Your function m-file, phases_yourlogin. m. Team: 1. Team Flyer. 0. Reading Assignment Ideas to Innovation Textbook: Chapter 26: pp. 589-597. Mathworks Tutorials (Optional but Recommended): Much (but not all) of the content in the above reading is represented visually in the following Interactive MATLAB Tutorial materials available through the MathWorks website, www.mathworks.com/purduefirstyear/matlabtutorial . The recommended segments for this week are: Programming in MATLAB h Flow and Loop Control o Flow Control o Writing Conditional Statements
Background image of page 1

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

View Full DocumentRight Arrow Icon
ENGR 13200 Ideas to Innovations Part II Spring 2011 1. MATLAB In-Class Activity This is to be completed individually. This problem is added to your homework grade. Complete activity 4 from class 3b. Deliverable: Hardcopy printout of your function files, fxy4C_yourlogin.m and fxy4F_yourlogin.m. Upload your m-files to your Faculty Instructor’s Assignment Drop Box on Blackboard. 2. MATLAB In-Class Activity This is to be completed individually. This problem is added to your homework grade. Complete activity 5 from class 3b. Deliverable: Hardcopy printout of your function file, Class3b_Activity5.m. Upload your m-file to your Faculty Instructor’s Assignment Drop Box on Blackboard. 3. Debugging a User-defined Function This is to be completed individually. This problem is part of your homework grade. The following user-defined function M-file (cone_calcs.m) was created by a student in ENGR 13200 to compute the volume and area of a right- circular cone. Line # Code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 function [vol,area] = cone_calcs(r,h) % This function computes the volume and surface area % of a right-circular cone. % INPUTS: the scalar radius r of the circular base % the scalar height h of the cone % OUTPUTS: the scalar volume V of the cone % the scalar area A of the cone if r=<0 || h<=0 error(‘The cone must have positive dimensions’) base = pi*r^2; % area of base circle sides = pi*r*sqrt(r^2 + H^2); % area of the sloped sides else if V = 1/3*base*H; % volume A = sides + base; % total surface area end
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/02/2011 for the course ENGR 132 taught by Professor Kutson during the Spring '11 term at Purdue University.

Page1 / 6

hw04_engr13200_s11 - ENGR 13200 Ideas to Innovations Part...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online