"Warning: Escaped character '\P' is not valid. See 'doc sprintf' for supported special characters." after calling stairs, scatter, histogram functions.
조회 수: 10 (최근 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
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.
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Graphics Performance에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!