HOW CAN I READ UNICODE TEXT DOCUMENT IN MATLAB AND DISPLAY ON COMMAND WINDOW
조회 수: 5 (최근 30일)
이전 댓글 표시
Actually i am trying to read text document containing unicodes using matlab which is very much required for my project
댓글 수: 0
답변 (2개)
Sudha S
2015년 9월 30일
Use textscan command in matlab.It reads formatted data files or strings
댓글 수: 0
Walter Roberson
2015년 9월 30일
http://www.mathworks.com/help/matlab/ref/native2unicode.html and http://www.mathworks.com/help/matlab/ref/unicode2native.html
For example, on my system,
native2unicode([225 131 161],'UTF-8')
native2unicode(sscanf('e48ca1','%2x'),'UTF-8')
Whether your system would display the same thing is going to depend upon the font you have active and upon your locale; see http://www.mathworks.com/help/matlab/internationalization.html
댓글 수: 0
참고 항목
카테고리
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!