Answered step by step
Verified Expert Solution
Question
1 Approved Answer
EGR 124, EGR Methods JTCC Ch 17 MATLAB Assignment Write and sub mit TWO MATLAB program files that contain all the code for the problem
EGR 124, EGR Methods JTCC Ch 17 MATLAB Assignment Write and sub mit TWO MATLAB program files that contain all the code for the problem solutions. Filenames Main program name: ch17initials (all in lower case) Function name: ch17initials_max (all in lower case) General Instructions 1. The first line of every MATLAB file for EGR 124 will be the comment line % EGR 124, Ch xx MATLAB Assignment, your name 2. Functions should have as next consecutive comment lines % Input(s): list them % Output(s): list them %Description: brief 3. Problems-see rubric for required displayed results #1 ICA 17-7, p 617, Thinking Like an EGR #2 ICA 17-8, p 617, Thinking Like an EGR (do not use a FOR loop) #3 Inaseparatefunctionfie create a function called ch 17firstlastnitial max Insert comments to separate problems within the file, and to define variables Input: row vector of 101 values Output: scalar value Create a row vector D of values from 50 down to 0, with an increment of 0.5 Multiply the elements of D and the square of the elements of the input vector Store the results in E Find the maximum value of E and store it in F-this is the output of the function create an input vector 0 to 200, increments of 2 call the function with the input vector, and assign the output to the variable maxval Grading Rubric I will download your file. Typing the expected program name in MATLAB should generate the following: #1-value of P, using the test values (no other values) #3-values of input vector and maxval (no other values) If you use the wrong filename, I will get an error
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started