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)

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2012 年 9 月 27 日
編集済み: Azzi Abdelmalek 2012 年 9 月 27 日

9 投票

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)

1 件のコメント

Azzi Abdelmalek
Azzi Abdelmalek 2012 年 9 月 27 日
Thanks Matt, it's fixed

サインインしてコメントする。

その他の回答 (1 件)

Yowh
Yowh 2012 年 9 月 27 日
編集済み: Walter Roberson 2024 年 3 月 4 日

1 投票

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 件のコメント

Soumyaranjan
Soumyaranjan 2024 年 3 月 3 日
Thanks Yowh
Walter Roberson
Walter Roberson 2024 年 3 月 4 日
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)

サインインしてコメントする。

カテゴリ

製品

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by