how to generate the no. in increasing order but with decreasing difference between the no.?
Show older comments
eg:- i want to generate the no. from 10 to 40 but i want the no. will generate like
10 20 28 34 40.
in this the no. is generate from 10 to 40 and the difference is decreasing by 2.
2 Comments
Torsten
on 1 Sep 2022
34 - 28 = 6 and also 40 - 34 = 6, so the difference is not decreasing by 2.
SAHIL SAHOO
on 1 Sep 2022
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!