Array slice indexing?
970 views (last 30 days)
Show older comments
Nour Salhab on 13 Nov 2017
Answered: Mohammed Hamaidi on 22 Mar 2022
please explain what the following function does :
if you could give me an example that would be great! thank you
the cyclist on 13 Nov 2017
Edited: the cyclist on 13 Nov 2017
It returns the ith row of a, in right-to-left order.
You might want to study Getting Started with MATLAB.
Mohammed Hamaidi on 22 Mar 2022
Take for example:
a=[1 2 3; 5 6 7; 8 9 12]
gives: the 2nd row in right to left order (the elements of the 2nd row from right to left)
ie: 7 6 5
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!