Is there any function which returns the content of a variable as string?
이전 댓글 표시
We have to know the data type when using `sprintf` and it can convert limited types to string.
disp(var) can show the content of a variable of any type but it doesn't return anything.
채택된 답변
추가 답변 (1개)
Fangjun Jiang
2016년 3월 14일
편집: Fangjun Jiang
2016년 3월 14일
0 개 추천
num2str();
mat2str()
댓글 수: 1
Walter Roberson
2016년 3월 15일
Those require known the datatype.
카테고리
도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!