Cody

Problem 2486. Get the variable value from a string and generate sum

Solution 483805

Submitted on 7 Aug 2014
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
%% x = 'A=10'; y = 'B=20' y_correct = 32; assert(isequal(your_fcn_name(x,y),y_correct))

Error: Assertion failed.

2   Fail
%% x = 'A=2'; y = 'B=10' y_correct = 12; assert(isequal(your_fcn_name(x,y),y_correct))

Error: Assertion failed.

Suggested Problems

More from this Author1

Community Treasure Hunt

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

Start Hunting!