Subscript & superscript equation
Mostrar comentarios más antiguos
cannot manage to add the equation in the mention capture shoot image at the matlab !!!
Tried to use the same sequence mention in https://www.mathworks.com/help/symbolic/add-suffixes-to-symbolic-results.html
but didn't work !!!
Tried latex and it gives another answer than it should become.
Kindly need an assistance in that concern !!!
Respuesta aceptada
Más respuestas (2)
Mohamed EL-Baz
el 2 de Jul. de 2021
0 votos
2 comentarios
Cris LaPierre
el 2 de Jul. de 2021
Try it out and see if it displays correctly. As a hint, you can enclose it in dollar signs to turn it into an equation here in the editor.
$E_{O,k,n}^d(L_{k,n}^d,P_n^c)={\frac{{N_oB\frac{\Delta}{K}}}{g_{k,n}{(P_n^c)}}\times{(2^{\frac{L_{k,n}^d}{B\frac{\Delta}{K}} -{1})$
becomes

Mohamed EL-Baz
el 2 de Jul. de 2021
Mohamed EL-Baz
el 2 de Jul. de 2021
Editada: Mohamed EL-Baz
el 2 de Jul. de 2021
0 votos
4 comentarios
Cris LaPierre
el 2 de Jul. de 2021
That works, though with some tweaks you can get it to look better.
$E_{O,k,n}^d \left(L_{k,n}^d ,P_n^c \right)=\frac{N_0 B\Delta /K}{g_{k,n} \left(P_n^c \right)}\left(2\frac{L_{k,n}^d }{B\Delta /K}-1\right)$
or
Mohamed EL-Baz
el 2 de Jul. de 2021
Mohamed EL-Baz
el 2 de Jul. de 2021
Cris LaPierre
el 2 de Jul. de 2021
Editada: Cris LaPierre
el 2 de Jul. de 2021
In your ded.jpg image, you were trying to use the Edit Equation tool to create your equations, so that is how I've shown you how to create equations.
In your latest question, it doesn't work because displayFormula is for displaying symbolic equations, not latex equations. Follow this example from the displayFormulat documentation page.
S = "m*diff(y,t,t) == m*g-k*y";
symstr = ["'The equation of motion is'"; S;"'where k is the elastic coefficient.'"];
displayFormula(symstr)
Categorías
Más información sobre LaTeX en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


