Get input and output variable names - MATLAB Cody - MATLAB Central

Problem 1937. Get input and output variable names

Difficulty:Rate
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

35.0% Correct | 65.0% Incorrect
Last Solution submitted on Mar 11, 2023

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
1
3

Problem Recent Solvers17

Suggested Problems

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!