Latex in plot title with variables

조회 수: 49 (최근 30일)
Peppe
Peppe 2017년 9월 23일
답변: Peppe 2017년 9월 23일
Hi, I'm running Matlab R2014b. Trying to make a nice plot with :
title([' Slip regulation \lambda for K_{\sigma} = ',num2str(Ksigma),' K = ', num2str(K),' and \epsilon = ', num2str(theta)]);
Tried even with
title([' Slip regulation \lambda for K_{\sigma} = ',num2str(Ksigma),' K = ', num2str(K),' and \epsilon = ', num2str(theta), 'Interpreter','tex' ]);
Still no luck. Would someone help me out ? Thanks in advanced.

채택된 답변

Peppe
Peppe 2017년 9월 23일
Solved it using:
mytitleText = [' Slip regulation \lambda for K_{\sigma} = ',num2str(Ksigma),' K = ', num2str(K),' and \epsilon = ', num2str(theta)];
title(mytitleText,'Interpreter','tex' );

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Title에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by