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:nf(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:nfor j=1:nA(i,j) = quad('f(i)*f(j)+2*i-3*j',0,L)endend
Is there a way to do this? With the '' in quad it just doesn't work. Thanks in advance.
Best Answer