MATLAB Answers

0

How to generate values between 5 and 4 with difference 0.1 without subtract symbol?

I want something like this [5:0.1:4] = 5 4.9 4.8 4.7.....4.1 4
Thank you

  0 Comments

Sign in to comment.

2 Answers

Answer by Birdman
on 7 Jun 2018
 Accepted Answer

5:-0.1:4

Answer by Walter Roberson
on 7 Jun 2018

fliplr(4:0.1:5)
Though it is not clear to me why you do not just use 5:-0.1:4