calling dir() with a file path that uses both English and Korean char.

조회 수: 1 (최근 30일)
Pat . 2019년 6월 7일
댓글: Pat . 2019년 6월 10일
I am trying to perform operations on files in a shared location. Part of the script that I have been using calls file=dir('path') with a string containing the expected file location. The previous location was all english and the script ran with no issue. Recently part of the path was changed to Hangul (containing both english and korean char). My machine is in english. (Windows and R2018a)
simply using "copy address as text" and copy-pasting into the script yeilds boxes in the text and it is later interpreted internally as "????" mid-string. So that is not a solution path.
Is it possible to save the path as a unicode text doc and have matlab import and handle it in that way?
Are there other ways to handle this operation?
  댓글 수: 2
Pat 2019년 6월 10일
uigetdir() works! It adds a bit of manual input but it solved the issue for me.

댓글을 달려면 로그인하십시오.

답변 (1개)

Debasish Samal
Debasish Samal 2019년 6월 7일
Follow the below link to the answer. It is similar to your issue.
Good luck!


Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by