Where the Four Corners Am I? - MATLAB Cody - MATLAB Central

Problem 55960. Where the Four Corners Am I?

Difficulty:Rate
The "Four Corners" region of the US is where Colorado, Utah, Arizona, and New Mexico all meet - the only place where four states touch. The Four Corners Monument itself is on Navajo land.
Given coordinates x and y, return one of five strings:
  • If and , then return "NN"
  • Otherwise, if x & y are both positive, return "CO",
  • if x is negative and y is positive, return "UT",
  • if x & y are both negative, return "AZ",
  • if x is positive and y is negative, return "NM"

Solution Stats

31.58% Correct | 68.42% Incorrect
Last Solution submitted on Apr 09, 2025

Problem Comments

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
3
5
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
4

Problem Recent Solvers192

Suggested Problems

More from this Author12

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page