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개)

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
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)

댓글을 달려면 로그인하십시오.

카테고리

제품

태그

질문:

2012년 9월 27일

편집:

2024년 3월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by