how do I fprintf a power?
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
cwp
am 22 Okt. 2024
Bearbeitet: Aquatris
am 23 Okt. 2024
Hi, I can't figure out how to get fprintf() to display "r^2" without the "^". I have
fprintf("R^2; %.4f%s%.4f\n", gof.rsquare)
but this displays the "^". How do I fix this?
0 Kommentare
Akzeptierte Antwort
Star Strider
am 22 Okt. 2024
Using ‘char(178)’ is an option —
gof.rsquare = 0.975;
fprintf("R"+char(0178)+"; %.4f%s%.4f\n", gof.rsquare)
.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots 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!