help with prettyprint or mlx display

Im trying to use pretty print for a long equation line and its not working. also, the documentation says:
pretty is not recommended. Use Live Scripts instead.
Live Scripts provide full math rendering while pretty uses plain-text formatting.
See What Is a Live Script or Function? (MATLAB)
the livescript doesnt show the equation clearly either. Could i get some help?
here are my equations:
minf=((.1*(v+40)/(1-exp(-(v+40)/10)))/((.1*(v+40)/((1-exp(-(v+40)))/10))+4*exp(-(v+65)/18)))
% 1 2 3 4 5 6
% 12345678901234567890123456789012345678901234567890123456789012345678901234567890
dv=ib-gna*(minf)^3*(.8-n)*(v-vna)-gk*n^4*(v-vk)-gl*(v-vl)
dn=(1-n)*((v+55)/100)/(1-exp((v+55)/10)-n/8*exp(-(v+65)/80))

3 commentaires

Alex Link
Alex Link le 3 Mai 2018
Hi there,
Could you please explain further what you mean by, "livescript doesnt show the equation clearly either"? I recreated your equation in Live Editor, and the image attached is what I see. Which part of the equation would you like to see clarified? If I have a better understanding of what you are looking for, I can point you in the right direction.
how did you get the big fraction to appear? it does not show on my lifescript
Alex Link
Alex Link le 3 Mai 2018
When you have a Live Script/Function open, navigate to the "Insert" tab and select the "Equation" option. This will open an "Equation" tab where there will be a "Fraction" structure you can select.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Live Scripts and Functions dans Centre d'aide et File Exchange

Produits

Question posée :

le 1 Mai 2018

Commenté :

le 3 Mai 2018

Community Treasure Hunt

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

Start Hunting!

Translated by