Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在情节标题中写 H2o?
H2 工作:
plot(main=expression("H"[2]),0)
H2O 失败:
plot(main=expression("H"[2]"O"),0)
仅当我前面有空格时,此解决方案才有效“”
plot(main=expression(" "*H[2]*"O"),0)
你很亲密。这有效:
plot(1:10, main = expression(H[2]*O))
原因是2是 element 的下标,H而您想将 elementO放在H. 表达式中的符号表示与x * y并列,即位置和一起。查看更多。xyxy?plotmath
2
H
O
x * y
x
y
?plotmath