How to include a Latex expresion from char array in matlab publishing
조회 수: 5 (최근 30일)
이전 댓글 표시
When publishing an .m file to html, how do I include Latex expresión saved in a char array in my MATLAB code so that equations are formatted nicely in HTML?
For example, my code would be:
syms h(n)
h(n)=(1/3)*cos(n*pi)+1
array=latex(h) %here is the latex expression of h(n), and i want to include in the publish html page.
%%
% Here comes the text that i want to display, and here comes the latex
% expresion from array --> $$array$$
%
댓글 수: 0
답변 (1개)
Vishesh
2022년 10월 6일
Please refer to this documentation: https://www.mathworks.com/help/matlab/matlab_prog/insert-equations.html#bvak508 .
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 LaTeX에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!