What vector will generate command - fliplr(5:5:10)?

Dear Representative. What vector will generate command - fliplr(5:5:10)? Sincerely, Mike.

 Accepted Answer

Adam
Adam on 13 Feb 2015
Edited: Adam on 13 Feb 2015
10:-5:5
assuming you are talking more generically. This example is rather degenerate and can be replaced by:
[10 5]
but if you have more numbers:
maxVal:-inc:minVal
will create a decreasing vector.

Categories

Tags

Asked:

on 13 Feb 2015

Edited:

on 13 Feb 2015

Community Treasure Hunt

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

Start Hunting!