How to range array steps
128 views (last 30 days)
Show older comments
Life is Wonderful
on 22 Sep 2021
Commented: Life is Wonderful
on 22 Sep 2021
Hi
I am looking for a logic to range of value from -1 to +1 including 0 where data should look like
-1-2-3...-32 : +32+31..1
Example snippet
x = [-1:-1:-32:32:1:1]
Note : No Loops involed
Thank you
0 Comments
Accepted Answer
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!