【发布时间】:2013-09-04 12:50:23
【问题描述】:
我已经建立了一个function_ handles 的单元格数组,如下所示:
B = {@(x) x(1)+x(2)^2
@(x) x(1)-2*x(2)}
假设A = [1 2; 3 4]。我需要执行像A*B 这样的矩阵乘法来将单元格数组作为
A*B = {@(x) x(1)+x(2)^2 + 2*(x(1)-2*x(2))
@(x) 3*(x(1)+x(2)^2) + 4*(x(1)-2*(x(2))}
我该怎么做?
【问题讨论】:
-
你真正想要的是符号工具箱。
标签: matlab anonymous-function function-handle