Risposta accettata

Star Strider
Star Strider il 16 Set 2015
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 Commenti

ARJUN K P
ARJUN K P il 16 Set 2015
not for all values... 35 only or 41 only or 78 only
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’

Accedi per commentare.

Più risposte (2)

Thorsten
Thorsten il 16 Set 2015
disp(Ki(:,2))

2 Commenti

ARJUN K P
ARJUN K P il 16 Set 2015
not for all values... 35 only or 41 only or 78 only
disp(Ki(2))
disp(Ki(4))
disp(Ki(6))

Accedi per commentare.

Pranav Bansal
Pranav Bansal il 4 Nov 2019

0 voti

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

Categorie

Scopri di più su Operators and Elementary Operations in Centro assistenza e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by