how I can make loop start with 8 end with 1?

how I can make loop start with 8 end with 1? is it available in mat lab when i write
for 8:1
It does not work can any one help ,please?

 Accepted Answer

Consider:
N = 8 : -1 : 1

2 Comments

thanks for quick helpful answer
My pleasure!
This was a lot easier than the matrix!

Sign in to comment.

More Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!