"Warning: Escaped character '\P' is not valid. See 'doc sprintf' for supported special characters." after calling stairs, scatter, histogram functions.
39 views (last 30 days)
Show older comments
Simona Vermiglio
on 21 Dec 2021
Answered: Simona Vermiglio
on 26 Jan 2022
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 Comments
Walter Roberson
on 22 Dec 2021
I would first experiment by changing directory away from the folders that MATLAB is installed in and doing a trial plot there.
Accepted Answer
More Answers (0)
See Also
Categories
Find more on C Shared Library Integration 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!