cprintf not work in linux command window
2 次查看(过去 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
2 个评论
Geoff Hayes
2019-8-16
Yu - is the problem that the abcde is not coloured blue? Is that what you are expecting? Have you tried other calls (to this function) with a different first parameter? (For reference, see cprintf.)
采纳的回答
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 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Scope Variables and Generate Names 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!