# how to write \tilde{R_1} in matlab legend, I tried with this not working

25 views (last 30 days)
PRADEEP KUMAR on 22 Nov 2021
Commented: PRADEEP KUMAR on 22 Nov 2021
I want to write \tilde{R_1} in matlab legend, I tried with this not working
PRADEEP KUMAR on 22 Nov 2021
legend('$\tilde{R}_{1}=\tilde{R}_{2}=1(Sim.)$','Interpreter','latex') through this command I am able to get but while editting it for different plot I am again getting a error attached with this

Yusuf Suer Erdem on 22 Nov 2021
I tried this code below and it was working. Could you compare with your own code?
clc; clear; close all;
text(0.5, 0.5, '$$\tilde{a}$$', 'Interpreter', 'LaTeX')
##### 2 CommentsShowHide 1 older comment
PRADEEP KUMAR on 22 Nov 2021
Thank you Sir