I would like to have sigma and epsilon in greek symbols in y and x axis respectively (with latex interpreter)
조회 수: 9 (최근 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!