LS 関数のような SYSTEM コマンドを実行すると、表示結果が文字化けするのはなぜですか?
Show older comments
コマンドウィンドウから、LS コマンドを実行しています。作業ディレクトリにあるフォルダやファイルを表示したところ、表示結果にゴミのような文字列が含まれて、正しく表示されません。
フォルダ名やファイル名は英語(アルファベット)です。また、ファイル名は、正しく表示されているようです。
以下の結果は、いずれも、正常ではありません。
ls
!ls
system('ls')
Accepted Answer
More Answers (0)
Categories
Find more on 言語の基礎 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!