EngE_1114_HW5

# EngE_1114_HW5 - 12:20 M | 1 Given x EngE 1114 HW5 | 6...

• Notes
• 7

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

1) Given: x Required: Flowchart, MatLab code, sample runs Relationships: y = 1/(2-3x) , y = (x+3) 1/3 Solution: Start INPUT .x IF .x < -3 .y = 1/(2-3x) .y = (x+3) 1/3 OUTPUT .y Stop % This function will return a function of 'y =' when % provided with value of 'x'. % Call statement: [y]=step_function(x) function  [y]=step_function(x) if  x<-3;     y=1./(2-3.*x); else     y=(x+3).^(1/3); end >> [y]=step_function(-10.5) y = 0.0299 >> [y]=step_function(-3) y = 0 >> [y]=step_function(.5) y = 1.5183 12:20 M | EngE 1114 HW5 | 6 February 2006 | Konzik, Kit | /

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

This is the end of the preview. Sign up to access the rest of the document.
• Fall '06
• TWKnott
• enter

{[ 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