Quad command
3 次查看(过去 30 天)
显示 更早的评论
Is there a way to use the numeric quadrature functions (quad commands) with functions that change? Say I define some symbolic functions on x
for i=1:n
f(i)=sen(2*i*pi*x - 1)
end
And then I'd like to create matrix components, which are the integrals of those functions or a combinations of them, say:
for i=1:n
for j=1:n
A(i,j) = quad('f(i)*f(j)+2*i-3*j',0,L)
end
end
Is there a way to do this? With the '' in quad it just doesn't work. Thanks in advance.
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!