how to shift a subscript upwards in Matlab plot legend?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens

I have "V_c" in the legend of a figure. However, the subcript "c" is far from "V". Could you please guide me how to make "c" closer to "V", in other words shift it up a little as below?

2 commentaires
Thomas Alberts
le 4 Mar 2023
Why doesn't this work in Bode plots:
legend('$Bandpass$','$Highpass$','$Lowpass$','$f_{l}$','$f_{h}$','$f_{m}$', ...
'Interpreter', 'latex')
Jan
le 5 Mar 2023
@Thomas Alberts: Please do not attach a new question as comment to a similar question. Create a new thread instead.
Provide a minimal working example and mention the Matlab version there. This is working as expected for me under R2018b:
plot(1:10, rand(6, 10))
legend('$Bandpass$','$Highpass$','$Lowpass$','$f_{l}$','$f_{h}$','$f_{m}$', ...
'Interpreter', 'latex')
Voir également
Catégories
En savoir plus sur Legend dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!