cprintf not work in linux command window
1 ビュー (過去 30 日間)
表示 古いコメント
Hi:
I noticed that function 'cpirntf' does not work in Linux command window, below is what I did:
1. open a command window in Linux system
2. type command below:
module load matlab/R2018b
matlab -nosplash -nodesktop
addpath(genpath('path contains cprintf'))
3.
cprintf('keywords','abcde\')
below is the result:

is there anyway to make it work?
Thanks!
Yu
採用された回答
Stephen23
2019 年 8 月 16 日
編集済み: Stephen23
2019 年 8 月 16 日
"open a command window in Linux system"
cprintf works in the MATLAB Command Window:
cprintf is unrelated to the command window of any OS, nor does Yair Altman's extremely informative website say that it will have any effect on any OS command window. He does explicitly entitle one of his first posts on the topic "Changing Matlab’s Command Window colors",however you are not using the MATLAB Command Window, so there is no reason to expect it to work.
その他の回答 (0 件)
参考
カテゴリ
Find more on Entering Commands 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!