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
Solution Comments
Show comments
Loading...
Problem Recent Solvers22
Suggested Problems
-
Find the peak 3n+1 sequence value
2573 Solvers
-
How to find the position of an element in a vector without using the find function
2823 Solvers
-
Find the "ordinary" or Euclidean distance between A and Z
178 Solvers
-
Find the square of the sum of the digits of a number
161 Solvers
-
Matlab Basics - Switching Assignments
513 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!
hi,function need two input and also first testsuite is not correct
10+20==32 ???
The first test suite is still faulty...10+20=32.
Test suite has been fixed