Problem 1408. Given the name from the legend, return the handle

Write a function that will return the handle to the desired object. The input for this function will be a string which represents the objects name which has been created through a call to the "legend" function.


h_right = plot(1:2,1:2,'ro'); hold on; h_wrong = plot(1:3,1:3,'bx')


h_match = GetHandleByName('Right');

The test suite will test for: isequal(h_match,h_right)

Solution Stats

44.12% Correct | 55.88% Incorrect
Last solution submitted on Dec 07, 2014

Problem Comments


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