Problem 2486. Get the variable value from a string and generate sum
Get the variable value from a string.
Example.
x = 'A=10'
y = 'B=20'
Result = (x+y)
Result = 30
Solution Stats
Problem Comments
-
4 Comments
Show
1 older comment
Abdullah Caliskan
on 7 Aug 2014
hi,function need two input and also first testsuite is not correct
Jan Orwat
on 7 Aug 2014
10+20==32 ???
J. S. Kowontan
on 9 Apr 2018
The first test suite is still faulty...10+20=32.
Dyuman Joshi
on 2 Jul 2021
Test suite has been fixed
Solution Comments
Show commentsProblem Recent Solvers18
Suggested Problems
-
Find the longest sequence of 1's in a binary sequence.
5935 Solvers
-
183 Solvers
-
Change the first and last diagonal element of the identity matrix to zero
146 Solvers
-
Convert given decimal number to binary number.
1913 Solvers
-
Get the array of sum for three consecutive numbers in an array
69 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!