I would like to have sigma and epsilon in greek symbols in y and x axis respectively (with latex interpreter)
13 次查看(过去 30 天)
显示 更早的评论
I would like to have sigma and epsilon in greek symbols in y and x axis respectively (with latex interpreter).
I have the following code, but it does not work as I wish:
T1 = readtable('PVC_Dogbones_media.xlsx', 'VariableNamingRule','preserve')
figure
plot(T1.('epsilon'), T1.('sigma'), '-k', 'LineWidth',0.5)
grid
xlim([0 0.5])
ylim([0 50])
ylabelname = sprintf('$${\tau}$$ [Pa]','${D_{i}}$' );
ylabel(ylabelname, 'fontsize', 11, 'interpreter', 'latex')
set(gca,'xticklabel',num2str(get(gca,'xtick')','%.2f'))
L=legend('PVC','Location','best');
set(L,'Interpreter','latex')
set(gca,'TickLabelInterpreter','latex')
xlabel(sprintf('$$\epsilon$$ [mm]','${D_{i}}$'), 'Interpreter','latex')
ylabel(sprintf('$${\tau}$$ [Pa]','${D_{i}}$'), 'Interpreter','latex')
0 个评论
采纳的回答
更多回答(3 个)
Sulaymon Eshkabilov
2021-8-1
xlabel('$\epsilon$', 'interpreter', 'latex'); ylabel('$\tau$', 'interpreter', 'latex')
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Formatting and Annotation 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!