Correct Sprintf use on legend
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, I'm plotting 3 things. I want to make a box legend inside the plot but cant find the right way to do it, I want the third legend say:
CI = Ddata(1) +- 10%
The code is the next:
rango=10
legend('Original Data','CI=Ddata(1)',sprintf('CI = Ddata(1) \pm %.1e',rango),4);
It doesnt create the legend and give this on the Command Window:
Warning: Invalid escape sequence appears in format string. See help
sprintf for valid escape sequences.
Any help is appreciated.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Legend finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!