The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Looking for Expert in matlab! to help with this assignment
MAE 215: Introduction to Programming in MATLABSummer B 2016Homework Assignment #4Due: Thursday, July 28thby 11.59 pmSubmission Instructions:Your solutions to this assignment must be typed and neatlypresented.Unorganized solutions and/or solutions that do not present the requireddeliverables will not be graded and receive a score of zero. This assignment is to besubmitted, 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 ascore of 80% or greater on problem #2 will receive credit for outcome #2: students will createMATLAB scripts and user-defined functionsand outcome #4: students will demonstrateunderstanding 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.4࠵!+2࠵!+࠵−19at x = 1,5,10,15ii.࠵!−5at x = 1,3,12,20iii.5࠵+36࠵+8at x = -5,-1,3,8b)Using basic logic operators, answer the following questions using MATLABi.Create two vectors of length 10 of your choice, and label them x and z.ii.Show, element by element, where x and z are equal.iii.Show, element by element, where x is greater than z.iv.Show, element by element, where x is less than or equal to z.v.Find the elements where x is greater than z.vi.Find the elements where z is less than or equal to x.vii.Replace the elements in (vi) with values 10 times their original value in asingle operation.2. [50 pts] User-defined input-output and logical statements.a)Consider the following function:࠵=࠵!!!!!!!+36࠵+1It 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 andprofessionally 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 usingdisp(). Be sure to include some output text in addition to displaying the functionevaluation result.
Attachments: