How do I integrate a matrix?
Show older comments

I want to integrate this equation above with the matrix [T] already previuosly defined. Can anyone help here...?
5 Comments
madhan ravi
on 10 May 2020
Edited: madhan ravi
on 10 May 2020
What’s rj? A vector? Can you upload your T matrix? How are the variables defined? Upload your code.
Taylor Carrington
on 10 May 2020
Taylor Carrington
on 10 May 2020
Ameer Hamza
on 10 May 2020
Can you show the equation of matrix T in mathematical form?
Taylor Carrington
on 10 May 2020
Answers (1)
darova
on 11 May 2020
What about this?
R = 5;
r = linspace(0,R,100);
T = rand(50,100);
rr = repmat(r,50,1); % 2d matrix r
F1 = 3/R^3*trapz(r,T.*rr.^2,2); % integrate
Is it understandable?
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!