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
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 Solvers19
Suggested Problems
-
Back to basics 20 - singleton dimensions
271 Solvers
-
Set the array elements whose value is 13 to 0
1391 Solvers
-
find the roots of a quadratic equation
233 Solvers
-
Crate a vector of logarithmically spaced
108 Solvers
-
Add two different item as shown in example
106 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!