下标在 set 函数中不起作用

subscript doesnot work in set function

我想用SL作为下标。 为什么它不适用于 set 函数?代码应该怎么写?

w=figure;
Labels={'E-O_{SL}','R','E','S','O','P','Sw','Lu'};
x=[1:8];
y=[0.81 0.78 0.79 0.92 0.81 0.46 0.89 0.86];
bar(x,y,'FaceColor',[0.360 0.50 0],'BarWidth',0.8);
set(gca,'xticklabel',Labels,'FontSize',8);
ylabel('Precision','FontSize',11);
set(w, 'Position', [0 0 800, 800]);
ylim([0 1]);

谢谢

假设这就是您想要的,您的代码在 MATLAB 2015b 中工作得很好。