How could I extract last column in a matrix if I don't know the size of matrix?

318 views (last 30 days)
I want to select only last coloumn..because in my program the size of matices is change every time..these are some example of my matices
(150x23)
(150x34)
(150*41)
...etc

Accepted Answer

madhan ravi
madhan ravi on 26 Feb 2019
matrix(:,end)
  3 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!