How do I integrate a matrix?
显示 更早的评论

I want to integrate this equation above with the matrix [T] already previuosly defined. Can anyone help here...?
5 个评论
madhan ravi
2020-5-10
编辑:madhan ravi
2020-5-10
What’s rj? A vector? Can you upload your T matrix? How are the variables defined? Upload your code.
Taylor Carrington
2020-5-10
Taylor Carrington
2020-5-10
Ameer Hamza
2020-5-10
Can you show the equation of matrix T in mathematical form?
Taylor Carrington
2020-5-10
回答(1 个)
darova
2020-5-11
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?
类别
在 帮助中心 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
