Replace Cell Array with other Cell Array
이전 댓글 표시
Hi, i want to replace cell array with other cell array's value. In example :
cell_array_1 = { 'i', 'love', 'you', 'you', 'love';
'i', 'you', 'love', 'i', 'much';
'i', 'love', 'you', 'so', 'much';
'i', 'love', 'you', 'so', 'much'}
cell_array_2 = { [], [], [], 'so', 'much';
[], 'love', 'you', 'so', []}
Then i want to get below result :
array_result =
'i' 'love' 'you' 'so' 'much' 'i' 'love' 'you' 'so' 'much' 'i' 'love' 'you' 'so' 'much' 'i' 'love' 'you' 'so' 'much'
So, the first & second rows in cell_array_1 is replaced by cell_array_2. Is that possible?
Thanks in advance.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!