Function Name: functiony Inputs: 1. (char) A string containing a function header
ID: 3714129 • Letter: F
Question
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.Explanation / Answer
First we should know what is fuction.
A function is a named sequence of statements that performs a desired operation. This operation is specified in a function definition.
After this we should know what is MATLAB. below is the defination of MATLAB
Millions of engineers and scientists worldwide use MATLAB® to analyze and design the systems and products transforming our world. The matrix-based MATLAB language is the world’s most natural way to express computational mathematics. Built-in graphics make it easy to visualize and gain insights from data. The desktop environment invites experimentation, exploration, and discovery. These MATLAB tools and capabilities are all rigorously tested and designed to work together.
MATLAB helps you take your ideas beyond the desktop. You can run your analyses on larger data sets, and scale up to clusters and clouds. MATLAB code can be integrated with other languages, enabling you to deploy algorithms and applications within web, enterprise, and production systems.
After knowing thsese fact we can easily give the answer of this Question.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.