How to extract data from a particular column of matrix?

2 次查看(过去 30 天)
Lets say X= A(:, 6) and from 6th column I want to extract data, Y=X(20:3500). How to get Y in single line code?

回答(1 个)

DGM
DGM 2021-12-27
Something like this should work:
Y = A(20:3500,6);

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by