Question: 1 of 3 MAE 215: Introduction to Programming in MATLAB Homework Assignment 4 Submission Instructions: Your solutions to this assignment must be typed and neatly

 1 of 3 MAE 215: Introduction to Programming in MATLAB Homework
Assignment 4 Submission Instructions: Your solutions to this assignment must be typed
and neatly presented. Unorganized solutions and/or solutions that do not present the

1 of 3 MAE 215: Introduction to Programming in MATLAB Homework Assignment 4 Submission Instructions: Your solutions to this assignment must be typed and neatly presented. Unorganized solutions and/or solutions that do not present the required deliverables will not be graded and receive a score of zero. This assignment is to be submitted, in PDF format, to the assignment link on blackboard by the deadline. Students who obtain a score of 80% or greater on problem #3 will receive credit for outcome #3: students will utilize proper coding and documentation practices. Students who obtain a score of 80% or greater on problem #2 will receive credit for outcome A2:students will create MATLAB scripts and user-defined functions and outcome #4: students will demonstrate understanding of programming control structures. 1.[10 pts] Revisiting MATLAB anonymous functions and basic logic operations. a) Use both polyval and an anonymous function to calculate the following: i. 4x4 2x2 +x 19 att x* 1.5.10.15 ii. 5 at x 1,3,12,20 iii. 5x3 36x +8 atx S-1,3,8 b) Using basic logic operators, answerthe following questions using MATLAB i. Create two vectors oflength 10 of your choice, and label them xand z. ii. Show, element by element, where xandzare equal. iii. Show, element by element, where xis greater than z. iv. Show, element by element, where x is less than or equal to z v. Find the elements where xis greater than z vi. Find the elements where z is less than or equal to x vii. Replace the elements in (v) with values 10 times their original value in a single operation. 2. [S0 pts User-defined input-output and logical statements. a) Consider the following function: 36x 1 It is desired that this function be evaluated for a variety of user-defined values of x Create a script file/segment of code that will allow the user to neatly and professionally input a scalar OR vector value of x. Evaluate the function at 3 user- selected points as well as a single user-defined vector input. Display the result using disp0. Be sure to include some output text in addition to displaying the function evaluation result

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!