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
-
230 Solvers
-
224 Solvers
-
Sum of odd numbers in a matrix
398 Solvers
-
Replace Nonzero Numbers with 1
266 Solvers
-
259 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!