What is the problem with my code? How to do integration of matrix which consists integral variable?

2 views (last 30 days)
syms x;
M = [x x^2];
fun = @(x) M;
integral(fun, 0, 12, 'ArrayValued', 1)

Accepted Answer

John D'Errico
John D'Errico on 13 Nov 2021
M is a SYMBOLIC variable. You use int to integrate it, not integral.
syms x;
M = [x x^2];
ans = 

More Answers (0)




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by