How to combine same filename in Table ?

조회 수: 3(최근 30일)
Wu Steven
Wu Steven 2021년 3월 25일
댓글: Yun-Cheng Chu 2021년 3월 29일
I got this table from my csv file, as you can see, I have the same name of fist and second row('10001.jpg').
I would like to combine them into the same bbox column.
The bbox column is a 1X4 double cell.
The output table would be like '100001.jpg' [270,186,33,53;37,176,86,80].
Sincerely.

답변(1개)

Gaurav Garg
Gaurav Garg 2021년 3월 27일
Hi Steven,
You can iterate over all the rows of the table, and then somehow check if any 'name' is getting repeated (you could use solutions provided in this link). Finally, you can append 'bbox' in the resultant table.
  댓글 수: 1
Yun-Cheng Chu
Yun-Cheng Chu 2021년 3월 29일
TKS! It helps me a lot.
Sincerely,
Steven.

댓글을 달려면 로그인하십시오.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by