HOW TO USE GREEK LETTER FOR WRITING (LAMBDA /DELTA ) RATIO AND OTHERS

Respected sir,
Please help me in the following things
a) how i will write (lambda/delta) in y axis and graph legend part in greek lettter
b) how i will write tau_0 hat in y axis ,legend part using greek letter
c)how i will write (tau_0 hat/delta) y axis and graph legend part in greek lettter

 Accepted Answer

a) frac{\lambda}{\delta}
b) \hat{\tau_0}
c) \frac{\hat{\tau_0}}{\delta}
Are these what you want?

8 Comments

i want to write in x axis lambda hat/delta hat
i have wriiten xlabel=('$$\hat{\lambda}/\hat{\delta}$$','Interpreter','Latex')
it shows error
Error: File: yieldpointvary.m Line: 7 Column: 41
Expression or statement is incorrect--possibly unbalanced (, {, or [.
Remove the "="
xlabel('$$\hat{\lambda}/\hat{\delta}$$', 'interpreter', 'latex')
ok. but another error shows for when i am going to write for y_0 and y_0/h
ylabel('$${\y_0}$$','Interpreter','Latex')
ylabel('$${\y_0}/{\h}$$','Interpreter','Latex')
y_0 is a location of a point .
gamma=[0.01:0.005:2]
delta=0.02
n=gamma/delta
beta = 0.1
y0 = -gamma.* log(beta)
plot(n,y0)
xlabel ('$$\hat{\lambda}/\hat{\delta}$$','Interpreter','Latex')
%ylabel('$${\y_0}$$','Interpreter','Latex')
%ylabel('$${\y_0}/{\h}$$','Interpreter','Latex')
ylabel=('y_0/h');
i want level x axis by lmbda hat/delta hat and y axis as y_0 hat or y_0/h where y_0 is a location of a point .
Your last line there should be
ylabel('$$y_0/h$$', 'Interpreter', 'latex');
still error showing
Index exceeds matrix dimensions.
Error in yieldpointvary (line 11)
ylabel('$$y_0/h$$', 'Interpreter', 'latex ')
You forgot to "clear ylabel" after you accidentally used "ylabel=" before.

Sign in to comment.

More Answers (1)

With respect to legends: it is not possible to directly specify the Interpreter property when you call legend(). However, you can assign the result of calling legend() to a variable, and then set the Interpreter property of that handle.

Categories

Community Treasure Hunt

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

Start Hunting!