How do I repair the eror?
조회 수: 1 (최근 30일)
이전 댓글 표시
#How do I repair the error?
z=Y(1,j)
zz=cellstr(z)
댓글 수: 0
답변 (1개)
Rik
2023년 4월 22일
You need to make sure each element of the cell array is a char vector. Since currently the second one is a cell, you need to unpack it. The code below should result in a cellstr.
z=Y(1,j)
zz=[z(1) z{2}];
참고 항목
카테고리
Help Center 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!