Problem 1937. Get input and output variable names
Given a string representing a function header, return the variable names used for the inputs and outputs.
For example if input string s is 'function [A,B] = myfun(c,d,f)', the input names are {'c';'d';'f'} and the output names are {'A';'B'};
Solution Stats
Problem Comments
-
3 Comments
ChrisR
on 17 Nov 2021
The last test got split into two, and it no longer works.
Dyuman Joshi
on 17 Nov 2021
@Chris, the test suite has been corrected and your answer has been rescored.
ChrisR
on 18 Nov 2021
Thanks, Dyuman
Solution Comments
Show commentsProblem Recent Solvers17
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15760 Solvers
-
Project Euler: Problem 1, Multiples of 3 and 5
3649 Solvers
-
244 Solvers
-
Return unique values without sorting
989 Solvers
-
middleAsColumn: Return all but first and last element as a column vector
639 Solvers
More from this Author5
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!