Matlab Basics II - Intervals - MATLAB Cody - MATLAB Central

Problem 2917. Matlab Basics II - Intervals

Difficulty:Rate

Write a function that takes an interval from a to b, and divides it into 5 parts

example:

a = 1, b = 2

output = 1 1.25 1.5 1.75 2

Solution Stats

60.32% Correct | 39.68% Incorrect
Last Solution submitted on Nov 12, 2025

Problem Comments

Solution Comments

Show comments
Join Cody Contest 2025 — Have Fun and Win Prizes!
...
We’re excited to invite you to Cody Contest 2025! 🎉 Pick a team,...

Problem Recent Solvers316

Suggested Problems

More from this Author28

Problem Tags

Community Treasure Hunt

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

Start Hunting!