Question: ME 101: Computational Tools for Engineers Fall 2016 Quiz 7 Problem 1: Consider the following expression to create anonymous function y-sinx)+ x?cos(x) +2 a) Create
ME 101: Computational Tools for Engineers Fall 2016 Quiz 7 Problem 1: Consider the following expression to create anonymous function y-sinx)+ x?cos(x) +2 a) Create an anonymous function of the given expression. b) Test your function by letting x = [29] with a spacing of 1. e) Display results in a table format using fprintf with appropriate number field format. d) Plot output values versus input values usingfplot, for the range of [2,9]. e) Add a text to the plot displaying the maximum value of y using num2str. Problem 2: The deflection and the slope of a cantilever beam that subject to load F is given by the following expressions. 6E1 6E1 E 10.4 10 psi a) Create a function with x as an input, and y and as outputs. b) Test your function by determining the deflection and the slope for x-0 f] with appropriate spacing. c) Plot deflection and slope versus location in two plots, subplot(2,1,n. d) Add a text to the title of each plot stating the maximum deflection and slope, respectively using sprintf 48in Ar
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
