Back to basics 13 - Input variables - MATLAB Cody - MATLAB Central

Problem 357. Back to basics 13 - Input variables

Difficulty:Rate

Covering some basic topics I haven't seen elsewhere on Cody.

Return as a string the name of the input variable to the function (as named in the parent workspace)

Example:

if the function was called as such:
my_variable=[];
y=inputvariable(my_variable);
y would equal 'my_variable'.

Solution Stats

34.74% Correct | 65.26% Incorrect
Last Solution submitted on May 06, 2025

Problem Comments

Solution Comments

Show comments
MATLAB EXPO 2025 Registration is Now Open! November 12 – 13, 2025
Registration is now open for MathWorks annual virtual event MATLAB EXPO 2025...
0

Problem Recent Solvers270

Suggested Problems

More from this Author39

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!