Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要将两个函数句柄相乘并得到函数句柄。例如:
u = @(x) x + 2; v = @(x) 2*x + 1; y = u * g;
这个怎么做?
一个解决方案是
y = @(x)( u(x).*v(x) );
我不知道任何其他方式。