Break an equation into 2 lines
113 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Enfa White
il 27 Set 2012
Modificato: Walter Roberson
il 4 Mar 2024
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)
0 Commenti
Risposta accettata
Azzi Abdelmalek
il 27 Set 2012
Modificato: Azzi Abdelmalek
il 27 Set 2012
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)
Più risposte (1)
Yowh
il 27 Set 2012
Modificato: Walter Roberson
il 4 Mar 2024
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 Commenti
Walter Roberson
il 4 Mar 2024
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)
Vedere anche
Categorie
Scopri di più su Mathematics and Optimization in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!