MATLAB で ¥ マークが表示されないのはなぜですか?

他のアプリケーション上では ¥ マーク(円マーク)が表示されますが、MATLAB のコマンドウィンドウ上やエディタ上では、​\(バックスラッシュ)が表示されます。

 Accepted Answer

MathWorks Support Team
MathWorks Support Team on 28 Feb 2023
Edited: MathWorks Support Team on 28 Feb 2023

0 votes

これは、MATLAB でご利用のフォントに依存します。
MATLAB で設定しているフォントが MS UI Gothic などの日本語対応しているフォントであれば、¥ (円マーク)が表示されます。
なお、¥ (円マーク) でも \(バックスラッシュ)でも、MATLAB のコマンドとしては等価となり、実行結果には影響はありません。​
フォントの設定方法については、下記のドキュメントをご覧ください。
・フォントの名前とスタイルの変更

More Answers (0)

Categories

Find more on プログラミング in Help Center and File Exchange

Products

Release

R2020b

Community Treasure Hunt

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

Start Hunting!