Extract column from table
조회 수: 11 (최근 30일)
이전 댓글 표시
I have a table with 2 columns titled as Area , BoundingBox.
In Boundingbox i have four more columns. i want to take the values of 2nd column.
bndft =
9×2 table
Area BoundingBox
____ ________________________________
714 61.5 14.5 214 101
37 150.5 52.5 13 14
8 171.5 83.5 4 4
8 177.5 78.5 4 4
12 179.5 30.5 6 6
27 234.5 50.5 11 12
12 241.5 36.5 6 6
496 242.5 53.5 126 104
23 256.5 150.5 10 7
bndft.BoundingBox(:,1,1,1); for this command i am getting first cloumn but i need second column. help me....
Thnak you
댓글 수: 0
채택된 답변
KSSV
2019년 4월 23일
Area = rand(7,1) ;
BoundingBox = rand(7,4) ;
T = table(Area,BoundingBox) ;
iwant = T.(2)(:,2)
댓글 수: 2
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!