フィルターのクリア

How to include a Latex expresion from char array in matlab publishing

2 ビュー (過去 30 日間)
Gabriel Sebastian Cariqueo Saavedra
Gabriel Sebastian Cariqueo Saavedra 2022 年 9 月 11 日
回答済み: Vishesh 2022 年 10 月 6 日
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$$
%

回答 (1 件)

Vishesh
Vishesh 2022 年 10 月 6 日

カテゴリ

Help Center および File ExchangeLaTeX についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by