Question: Problem 1 O solutions submitted (max: Unlimited) Write a function that takes in a scalar value and performs the following evaluation 1. If the input


Problem 1 O solutions submitted (max: Unlimited) Write a function that takes in a scalar value and performs the following evaluation 1. If the input is greater than 10, the function output should be the letter 'R' 2. If the input is less than or equal to 10 and greater than or equal to 0, the function should output the letter 'G' 3. If the input is less than 0. the function should output the letter 'B' Function name: Sorting Function Input : x Output: y. ** Note for an output to be text, it must be bounded by appostrophies as above. Function C Reset I MATLAB Documentation 1 function (outputs] = FunctionName (inputs) 2 4 5 6 end Code to call your function C Reset 1 y1=SortingFunction (11) 2 3 y2=SortingFunction (5) 4 5 y3=SortingFunction(-11) Run Function Problem 2 O solutions submitted (max: Unlimited) Create a function to calculate the value of y. from input x and the following conditions: 1. y = 10x - when log(x)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
