matlab中将公式以latex显示到图表

来源:互联网 发布:用jquery遍历数组 编辑:程序博客网 时间:2024/06/06 09:30
>> syms M>> syms A>> syms B>> f=dsolve('Dy*10000=M-B*y-A','y(0)=100','t') f = exp(-1/10000*B*t)*(-M+A+100*B)/B-(-M+A)/B  >> latex(f)ans ={e^{-{\frac {1}{10000}}\,Bt}} \left( -M+A+100\,B \right) {B}^{-1}-{\frac {-M+A}{B}}
>> text('Interpreter','latex','String','$${e^{-{\frac {1}{10000}}\,Bt}} \left( -M+A+100\,B \right) {B}^{-1}-{\frac {-M+A}{B}}$$','Position',[0.5 0.5],'FontSize',18)

在matlab中显示latex。
原创粉丝点击