I want to find an integral of a matrix:
T=[2 -sqrt(3) -1]';R=[0.0042 -0.0755];I=eye(3);A=diag([7, 5, 2.05]');B=[1 1 1]';F=[-30.6722 17.8303 -0.3775];fun=@(x) T*F*inv(exp(i*x)*I-A-B*F)*B*R*R'*B'*inv(exp(i*x)*I-A-B*F)'*F'*T';q=integral(fun,0,2.*pi)
Can you please help me to correct the code? It is possible to use this integral function for matrix?
Best Answer