Cody

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

38.89% Correct | 61.11% Incorrect
Last solution submitted on Dec 26, 2014

Tags

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Join the 15-year community celebration.

Play games and win prizes!

Learn more