Problem 42441. Code Wheel
Solution Stats
Solution Comments
-
3 Comments
+1 Nice cheat! I cannot really figure this one out. Seems like regexprep has access to a variable outside of its current workspace? (I am not on my computer right now, is this cody-specific or does this replicate in other settings?)
a small follow-up: I replicated this behavior (both in R2008b and R2015a) and regexprep dynamic ${ } operator seem to have access to *both* variables in the currently active workspace as well as in its parent workspace... never would have guessed that, thanks LY!
haha,??@cmd also has access to variables in the current as well as its parent,but ?@cmd doesn't.
Problem Recent Solvers21
Suggested Problems
-
Least common multiple of many numbers
199 Solvers
-
331 Solvers
-
3728 Solvers
-
137 Solvers
-
239 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!