Starting from the problem https://www.mathworks.com/matlabcentral/cody/problems/2644-the-ulam-matrix, transform the Ulam Matrix into coordinates to plot the spiral.

So:
- point 1 will have coordinates (0,0)
- point 2 will have coordinates (1,0)
- point 3 will have coordinates (1,1)
- point 4 will have coordinates (0,1)
and so on...
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers24
Suggested Problems
-
Replace NaNs with the number that appears to its left in the row.
3069 Solvers
-
Project Euler: Problem 5, Smallest multiple
1671 Solvers
-
631 Solvers
-
12040 Solvers
-
193 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!