Problem 2917. Matlab Basics II - Intervals
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
Problem Comments
-
1 Comment
Elmar Zander
on 29 Mar 2017
The interval is split in 4 parts, not 5! There are five points in total then...
Solution Comments
Show commentsProblem Recent Solvers316
Suggested Problems
-
Sum all integers from 1 to 2^n
16866 Solvers
-
460 Solvers
-
Matrix indexing with two vectors of indices
759 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
863 Solvers
-
312 Solvers
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!