angle in regular polygon - MATLAB Cody - MATLAB Central

Problem 43034. angle in regular polygon

Difficulty:Rate

Make a function which returns measure of interior angle in x-side regular polygon. x is as input. Please pay attention, that 1 and 2 side polygon don't exist, so if input is 1 or 2 return 0.

if x=3 its triangle and angle is 60 degrees x=4 -> angle = 90 degrees

Solution Stats

57.07% Correct | 42.93% Incorrect
Last Solution submitted on May 06, 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...
4
8
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 Solvers201

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!