MATLAB: What vector will generate command – fliplr(5:5:10)

fliplr

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

Best Answer

  • 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.