필터 지우기
필터 지우기

converting matlab expression into a symbolic expression

조회 수: 3 (최근 30일)
Howard Padmore
Howard Padmore 2023년 6월 12일
댓글: Walter Roberson 2023년 6월 12일
I am a starter with Matlab Symbolic toolbox. I have a matlab equation which is the output of the toolbox
z=x^2/(2*r) + x^4/(8*r^3) + x^6/(16*r^5) + y^2/(2*R) + y^4/(8*R^3) + y^6/(16*R^5)
I want to convert this into a regular typographical symbolic form. I tried putting this in live editor and just running. This gives me a nice formatted symbolic equation, but the z is in normal matlab form and the rest in symbol form is on the next line.
z =
How do I make this into one line, all in symbol form. I just want to extract this equation and paste it into a report / paper.
Many thanks.

채택된 답변

Torsten
Torsten 2023년 6월 12일
이동: Torsten 2023년 6월 12일
syms x y z r R
eqn = z == x^2/(2*r) + x^4/(8*r^3) + x^6/(16*r^5) + y^2/(2*R) + y^4/(8*R^3) + y^6/(16*R^5)
eqn = 
  댓글 수: 3
Howard Padmore
Howard Padmore 2023년 6월 12일
Thanks. I want to put the equation into a google doc, so I outputted in latex form, and then copy into the MathType addon in gdocs, and its translates automatically. Seems to work.
Walter Roberson
Walter Roberson 2023년 6월 12일
These days you can also ask for mathml form of a symbolic expression.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by