When I compute certain matrices Matlab renames parts of the elements with sigmas in the output. How can I turn this option off and keep my original symbols?
Thank you in advance
My code is
clear
syms p w1 w2 y1 y2
F = p*((w1/(p*y1))^(y1/(y1-1))+(w2/(p*y2))^(y2/(y2-1))) - w1*(w1/p *y1)^(1/(y1-1)) - w2*(w2/p*y2)^(1/(y2-1))
gradient(F, [p, w1, w2])
A = hessian(F, [p, w1, w2])
LaTeX_Expr = latex(A)
And the output is below

Antworten (1)

Tamuno-Opubo Cookey-Gam
Tamuno-Opubo Cookey-Gam am 9 Dez. 2019

0 Stimmen

Could you give an example of what your input is and what Matlab returns?

1 Kommentar

clear
syms p w1 w2 y1 y2
F = p*((w1/(p*y1))^(y1/(y1-1))+(w2/(p*y2))^(y2/(y2-1))) - w1*(w1/p *y1)^(1/(y1-1)) - w2*(w2/p*y2)^(1/(y2-1))
gradient(F, [p, w1, w2])
A = hessian(F, [p, w1, w2])
LaTeX_Expr = latex(A)
F =
ans =
A =

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Mathematics finden Sie in Hilfe-Center und File Exchange

Produkte

Tags

Gefragt:

am 9 Dez. 2019

Bearbeitet:

am 10 Dez. 2019

Community Treasure Hunt

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

Start Hunting!

Translated by