Problem 52557. Undocumented MATLAB tricks No. 2 - Tell the parfor index
Your function is called in multiple for-loops, and the loop indices are given to your function. One of these indices are from a parfor loop. Can you find which one is the parfor loop index?
There are more than one ways, however you may need some undocumented MATLAB tricks to find the best solution of size 25.
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers2
Suggested Problems
-
Determine whether a vector is monotonically increasing
22205 Solvers
-
Find perfect placement of non-rotating dominoes (easier)
372 Solvers
-
Lychrel Number Test (Inspired by Project Euler Problem 55)
104 Solvers
-
5540 Solvers
-
Make a rainbow matrix (follow-up to checkerboard matrix)
79 Solvers
More from this Author14
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!