"Warning: Escaped character '\P' is not valid. See 'doc sprintf' for supported special characters." after calling stairs, scatter, histogram functions.

27 次查看(过去 30 天)
Hello community,
I'm using MATLAB on a Technical Workstation (TWS) running MATLAB R2018b and running the same code (but I keep improving it) on the same machine every day.
>> ver
-----------------------------------------------------------------------------------------------------
MATLAB Version: 9.5.0.944444 (R2018b)
MATLAB License Number: xxxxxx
Operating System: Microsoft Windows 10 Enterprise Version 10.0 (Build 17763)
Java Version: Java 1.8.0_152-b16 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
MATLAB Version 9.5 (R2018b)
Simulink Version 9.2 (R2018b)
Curve Fitting Toolbox Version 3.5.8 (R2018b)
MATLAB Coder Version 4.1 (R2018b)
MATLAB Compiler Version 7.0 (R2018b)
MATLAB Compiler SDK Version 6.6 (R2018b)
MATLAB Report Generator Version 5.5 (R2018b)
Simulink Coder Version 9.0 (R2018b)
Statistics and Machine Learning Toolbox Version 11.4 (R2018b)
Vehicle Network Toolbox Version 4.1 (R2018b)
Four days ago I got this "Warning: Escaped character '\P' is not valid. See 'doc sprintf' for supported special characters." after calling some functions such as stairs, scatter, histogram. Here is the output:
>> dtt = [datetime(2021,12,13,12,07,01),datetime(2021,12,13,12,07,05)];
>> stairs(dtt,[2,3])
Warning: Escaped character '\P' is not valid. See 'doc sprintf' for supported special characters.
Warning: Error updating Stair.
Error: <a href="matlab: opentoline('C:
>> scatter(dtt,[2,3])
Warning: Escaped character '\P' is not valid. See 'doc sprintf' for supported special characters.
Warning: Error updating Scatter.
Error: <a href="matlab: opentoline('C:
However plot function works perfectly fine. Maybe it's because it is a built-in function, or maybe because it is stored in a different folder than that of the other functions. MATLAB toolboxes path is "C:\Program Files\MATLAB\R2018b\toolbox\matlab\..." and I guess the "\P" issue comes from there.
I've already read all the existing threads related to this warning, but I couldn't fix this issue. I can say I tried to install "Fuzzy Logic Toolbox" on Thursday, but I couldn't because I haven't got administartor privilegies on this TWS and from Friday on I keep getting this warning.
What do you suggest me to try?
Thank you all in advance.
Regards,
Simona
  12 个评论
Simona Vermiglio
Simona Vermiglio 2021-12-22
编辑:Simona Vermiglio 2021-12-22
My current directory is
"E:\MATLAB\..."
and there are several .m and .mat files. No .p files.
I didn't add any new files in the folder of my current directory within the period limited by "the code is working fine" time and "the code is not working anymore" time.
Walter Roberson
Walter Roberson 2021-12-22
I would first experiment by changing directory away from the folders that MATLAB is installed in and doing a trial plot there.

请先登录,再进行评论。

采纳的回答

Simona Vermiglio
Simona Vermiglio 2022-1-26
Hello,
finally I gave up and decided to install a new MATLAB version.
That fixed the issue.
Thank you all for your help.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Call Java from MATLAB 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by