I have a matrix of size 10*4, I want to read the matrix and after that want to read only second column, so can I get output like that??

1 Ansicht (letzte 30 Tage)
Because for specific condition I need only second column values. Please help.

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 25 Aug. 2016
A=rand(10,4)
c2=A(:,2)

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by