Why will categorical not convert this cell string?
조회 수: 13 (최근 30일)
이전 댓글 표시
What is the difference between these two lines?
The first line works correctly. The second line is giving an error.
Caused by:
Error using cell
Conversion to cell from categorical is not possible.
It seems to be working in here.
piedmont_1025.BurnCondition(:,1) = categorical({'Wild'});
piedmont_1025.FuelType(:,1) = categorical({'Piedmont'});
채택된 답변
Sean de Wolski
2023년 1월 24일
편집: Sean de Wolski
2023년 1월 24일
The left-hand side was a cell. So it successfully converted the right-hand side to categorical but then could not stick the categorical in as a cell on the left hand side.
c = cell(2,1)
c(1,1) = categorical({'hello'})
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Categorical Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!