필터 지우기
필터 지우기

Adding subscripts to legends or axis in Mupad plots

조회 수: 2 (최근 30일)
Javier Rubio-Herrero
Javier Rubio-Herrero 2015년 6월 22일
답변: Mukul Rao 2015년 6월 23일
Dear all,
I am trying to plot two functions in Mupad. I call them (in Latex notation) p_{1}(z) and p_{2}(z). Each function in the plot will appear in my legend. However, I don't seem to be able to make Mupad write the subscripts 1 and 2. Instead, I get p1(z), p2(z). Is there a way to effectively display subscripts/superscripts in legends and/or axis in plot made with Mupad?
Thanks!

채택된 답변

Mukul Rao
Mukul Rao 2015년 6월 23일
In my opinion, this is not possible. The legend function expects arguments of type DOM_STRING. DOM_STRING does not appear to support latex conversion, there is no mention of it in the documentation. There are a few special sequences that DOM_STRING supports and can be found in the section "Element Creation" , at the following link:

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D Function Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by