Publish equation in latex

5 views (last 30 days)
John Miller
John Miller on 5 Jun 2020
Edited: Mehmed Saad on 17 Jun 2020
I am working with symbolic expressions and I am calculating a vector which I want to publish formated with matlab.
So my question can be summarized to: How do I print y = (x^2,4*x^2) as
without typing it manually in the system

Accepted Answer

madhan ravi
madhan ravi on 5 Jun 2020
Edited: madhan ravi on 16 Jun 2020
Use Livescript
y = [x^2; 4*x^2]
  1 Comment
Mehmed Saad
Mehmed Saad on 16 Jun 2020
Edited: Mehmed Saad on 17 Jun 2020
have your tried latex(y)
Edit: Please Run the code before printing

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!