divide a range

5 Ansichten (letzte 30 Tage)
hamid
hamid am 7 Mär. 2011
hi. i have a range that is between a min and a max. i want to divide this range into equal ranges and take the middle of this ranges.for example suppose i have a this values: min=20 max=50 i want to divide this range into 3 equal range:(20:30,30:40,40:50) my interest is to take this the middle of this ranges as vector: (25,35,45) what would be the possible algorithm tanks a lot

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 7 Mär. 2011
RangeMin + (RangeMax - RangeMin)/6 * [1 3 5]

Weitere Antworten (0)

Kategorien

Mehr zu Clocks and Timers finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by