MATLAB Answers

Problem with matrix output

조회 수: 3(최근 30일)
Marco Forti
Marco Forti 9 Dec 2019
편집: Marco Forti 10 Dec 2019
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

  댓글 수: 0

로그인 to comment.

답변(1개)

Tamuno-Opubo Cookey-Gam
Could you give an example of what your input is and what Matlab returns?

  댓글 수: 1

Marco Forti
Marco Forti 9 Dec 2019
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 =

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.

태그

제품


Translated by