如何在matlab中渲染表达式gui? [英] How to render expressions in matlab gui?

查看:191
本文介绍了如何在matlab中渲染表达式gui?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将LaTeX格式的字符串中的数学表达式转换为整齐的形式。
我的初始解决方案是使用另一个程序将字符串转换为图像,并将图像加载到gui中。
是否有这样的程序或Matlab函数(获取一个乳胶字符串作为输入,并创建一个可以在Matlab中加载的图像)?还是有更好的方法?

I want to convert mathematical expressions from a string in LaTeX format to their neat form. My initial solution was using another program to convert string to image and loading the image in gui. Is there such program or Matlab function (that gets a latex string as input and creates an image that can be loaded in Matlab)? or is there any better way?

推荐答案

看看 text 命令,它的'口译'属性 - 它可以设置为'Latex',并为您提供所需的功能。 (见文档中的最后一个例子)。

look at text command and it's 'Interpreter' property - it can be set to 'Latex' and provide you with the functionality you want. (see last example in the doc).

这篇关于如何在matlab中渲染表达式gui?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆