我们如何将Latex表示转换为符号数学.
例如,
LaTex表示
y = \int x^2
Run Code Online (Sandbox Code Playgroud)
具有等效的符号数学表示
syms x
y = int(x*x, x)
Run Code Online (Sandbox Code Playgroud)
是否有执行此操作的功能?我知道在matlab中存在一个函数latex,我想要这个函数的确切反函数.
我有一个函数,它接收2个以上的变量
例如.
testFunction = @(x1, x2, x3, x4) x1.*x2.*x3.*x4;
testFunction2 = @(x1, x2, x3) sin(x1.*x2.^x3);
Run Code Online (Sandbox Code Playgroud)
有没有可用的功能bsxfun允许单个扩展功能有多于2个输入?
的例子 bsxfun
binaryTestFunction = @(x1, x2) x1.*x2;
x1 = 9*eye(10);
x2 = 3*ones(10,1);
A = bsxfun(binaryTestFunction , x1 , x2);
Run Code Online (Sandbox Code Playgroud)
扩展x2向量中的单例维度.
bsxfun比repmat更快,也是高度迭代的,因此我想知道单例扩展testFunction是否可行.