Break an equation into 2 lines
古いコメントを表示
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)
採用された回答
その他の回答 (1 件)
Yowh
2012 年 9 月 27 日
編集済み: Walter Roberson
2024 年 3 月 4 日
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
2024 年 3 月 3 日
Thanks Yowh
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)
カテゴリ
ヘルプ センター および File Exchange で Calculus についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!