Question: Its a matlab question Function Name: functiony Inputs: 1. (char) A string containing a function header Outputs: 1. (logical) A logical indicating whether or not

Its a matlab questionIts a matlab question Function Name: functiony Inputs: 1. (char) A string

Function Name: functiony Inputs: 1. (char) A string containing a function header Outputs: 1. (logical) A logical indicating whether or not the function header is valid Background: You're studying for finals and have finished all the practice tests, but GT Wi-Fi goes down before you can check your answers! To check to see whether all your function headers are valid, you decide to write a function in MATLAB. Afterall, MATLAB will always be there for you when GT inevitably fails you again. Function Description: Write a function that takes in a string containing a function header and outputs a true or a false indicating whether the header is valid. Example [out] functiony('function [out] myFunction(in)') out = true Hints: Using several conditionals will be easier than one long conditional. Think of a way to keep track of if one rule fails through a variable or a vector of variables. Create a helper function to check for valid variable names. The functions strtrim() and iskeyword() will be very useful. Function Name: functiony Inputs: 1. (char) A string containing a function header Outputs: 1. (logical) A logical indicating whether or not the function header is valid Background: You're studying for finals and have finished all the practice tests, but GT Wi-Fi goes down before you can check your answers! To check to see whether all your function headers are valid, you decide to write a function in MATLAB. Afterall, MATLAB will always be there for you when GT inevitably fails you again. Function Description: Write a function that takes in a string containing a function header and outputs a true or a false indicating whether the header is valid. Example [out] functiony('function [out] myFunction(in)') out = true Hints: Using several conditionals will be easier than one long conditional. Think of a way to keep track of if one rule fails through a variable or a vector of variables. Create a helper function to check for valid variable names. The functions strtrim() and iskeyword() will be very useful

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!