Respuesta aceptada

Star Strider
Star Strider el 16 de Sept. de 2015

0 votos

Firsgt, you need to change the commas to semicolons, then display the second column:
Ki = [25 35; 56 41; 85 78]
Display = Ki(:,2)

2 comentarios

ARJUN K P
ARJUN K P el 16 de Sept. de 2015
not for all values... 35 only or 41 only or 78 only
Star Strider
Star Strider el 16 de Sept. de 2015
Then you have to specify the row as well:
E12 = Ki(1,2) % Display ‘35’
E12 = Ki(2,2) % Display ‘41’
E12 = Ki(3,2) % Display ‘78’

Iniciar sesión para comentar.

Más respuestas (2)

Thorsten
Thorsten el 16 de Sept. de 2015

1 voto

disp(Ki(:,2))

2 comentarios

ARJUN K P
ARJUN K P el 16 de Sept. de 2015
not for all values... 35 only or 41 only or 78 only
Thorsten
Thorsten el 16 de Sept. de 2015
disp(Ki(2))
disp(Ki(4))
disp(Ki(6))

Iniciar sesión para comentar.

Pranav Bansal
Pranav Bansal el 4 de Nov. de 2019

0 votos

Ki = [25 35, 56 41,85 78]
disp(Ki(:,2))

Categorías

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

Preguntada:

el 16 de Sept. de 2015

Respondida:

el 4 de Nov. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by