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

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

 Respuesta aceptada

matrix(:,end)

3 comentarios

@ madhan ravi, thanks alot,, and how could I select all the coulomns except the last coulomn? thanks for helping
thank you helpful me

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Preguntada:

el 26 de Feb. de 2019

Comentada:

el 9 de En. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by