If an equation is too long to fit in one line, how to break it into two lines? An example of a long equation is as below and I wish to put it in two lines:
z=x(1)^2-2*x(1)*x(2)+6*x(1)+4*x(2)^2-3*x(2)+7*x(1)+5*x(2)^2-3*x(2)*x(1)^2-2*x(1)

 Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 27 Sep. 2012
Bearbeitet: Azzi Abdelmalek am 27 Sep. 2012

9 Stimmen

z=x(1)^2-2*x(1)*x(2)+6*x(1)+4*x(2)^2-3*x(2)...
+7*x(1)+5*x(2)^2-3*x(2)*x(1)^2-2*x(1)

Weitere Antworten (1)

Yowh
Yowh am 27 Sep. 2012
Bearbeitet: Walter Roberson am 4 Mär. 2024

1 Stimme

z=x(1)^2-2*x(1)*x(2)+6*x(1)+4*x(2)
z=z^2-3*x(2)+7*x(1)+5*x(2)^2-3*x(2)*x(1)^2-2*x(1)

2 Kommentare

Soumyaranjan
Soumyaranjan am 3 Mär. 2024
Thanks Yowh
Would have to be
z=x(1)^2-2*x(1)*x(2)+6*x(1)+4*x(2)
z=z-3*x(2)+7*x(1)+5*x(2)^2-3*x(2)*x(1)^2-2*x(1)

Melden Sie sich an, um zu kommentieren.

Kategorien

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

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by