Adding Latex Code?

3 vues (au cours des 30 derniers jours)
Aaron King
Aaron King le 14 Oct 2016
I am trying to add latex code to my MATLAB Script, what I need is shown in the picture.
Currently, I have the code below, and the first two are working, but the 3rd code is not.
What am I doing wrong?
%
% $$Adv(P) = -\vec{V} \cdot \vec{\nabla}(S)$$
%
% $$Vg = \bigg(-\frac{1}{\rho f}\bigg)\hat(k) \times \vec{\nabla}P$$
%
% $$ Adv(P) = \bigg(-\frac{1}{\rho f}{{\partial y}{\partial x}-{\bigg(-\frac{1}{\rho f}{{\partialy}{\partial x}$$
%
% $$=0$$
  1 commentaire
Brendan Hamm
Brendan Hamm le 14 Oct 2016
in the third line oyu have:
\partialy
which should read
\partial y
Second to last curly brackets.
Furthermore, you do not have disjointed curly brackets in the same line, the whole thing should read:
% $$ Adv(P) = \bigg(-\frac{1}{\rho f}{\partial y}{\partial x}-\bigg(-\frac{1}{\rho f}{\partial y}{\partial x}$$
Furthermore do you mean to have frac with the partial terms adn \bigg) anywhere?
% $$ Adv(P) = \bigg(-\frac{1}{\rho f} \frac{\partial y}{\partial x}-\bigg(-\frac{1}{\rho f}{\partial y}{\partial x}$$

Connectez-vous pour commenter.

Réponses (1)

Pritesh Shah
Pritesh Shah le 14 Oct 2016
You can use following link for checking https://www.codecogs.com/latex/eqneditor.php your equation, or making equation

Catégories

En savoir plus sur Printing and Saving dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by